Open youngwind opened 8 years ago
也可以设置好 .gitconfig
里的
[push]
default = current
在当前分支下直接 git push 就可以了
可以直接 git push 然后 git 会提示 : git branch --set-upstream my_branch origin/my_branch 复制、黏贴、回车。。。
新版的git 移除了--set-upstream命令
fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.
git version: 2.15.2
下面的情况我们经常遇到:
上面那个命令太长了,老记不住,后来找到一个更简单了。 第一次push的时候:
之后就可以直接push和pull了。