记不住的:git操作
一些git操作。我是真的记不住啊。
git 配置
1 | git config --global user.name "喵叔catuncle" |
ssh密钥
1 | ssh-keygen -t rsa -C "andych008@163.com" #生成ssh密钥文件 |
更改上一个commit的作者
1 | git commit --amend --author "喵叔catuncle <andych008@163.com>" |
常用git ssh config
1 | cat |
拉取特定的分支
1 | git clone -b xxx http://xxx.git |
track remote跟踪一个远程分支
1 | -u, --set-upstream-to <upstream> |
1 | git branch -u origin/dev |