首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)
host github
hostname github.com
Port 22
host gitlab.zjut.com
| /** | |
| Output log when debug state | |
| Usage: | |
| DebugLog(@"abc:%@", arg) | |
| */ | |
| #ifdef DEBUG | |
| #define DebugLog(format, ...) \ | |
| NSLog((@"%s (%@:Line %d) " format), \ |
| git init # 初始化本地git仓库(创建新仓库) | |
| git config --global user.name "xxx" # 配置用户名 | |
| git config --global user.email "[email protected]" # 配置邮件 | |
| git config --global color.ui true # git status等命令自动着色 | |
| git config --global color.status auto | |
| git config --global color.diff auto | |
| git config --global color.branch auto | |
| git config --global color.interactive auto | |
| git config --global --unset http.proxy # remove proxy configuration on git | |
| git clone git+ssh://[email protected]/VT.git # clone远程仓库 |
| #import <UIKit/UIKit.h> | |
| @interface UIImage (RoundedCorners) | |
| - (UIImage *)imageWithCornerRadius:(CGFloat)radius | |
| andSize:(CGSize)size; | |
| - (UIImage *)imageWithCornerRadius:(CGFloat)radius | |
| andSize:(CGSize)size | |
| borderWidth:(CGFloat)borderWidth |
| # | |
| # Set the build number to the current git commit count. | |
| # If we're using the Dev scheme, then we'll suffix the build | |
| # number with the current branch name, to make collisions | |
| # far less likely across feature branches. | |
| # | |
| if [ "${CONFIGURATION=}" == "Release" ]; then | |
| git=`sh /etc/profile; which git` | |
| gitBuild=`"$git" rev-list --all |wc -l` |