GIT

[[toc]]

绑定本地和远程分支

想要直接使用git push来代替git push origin master To push the current branch and set the remote as upstream(推送当前分支并将远程设置为上游),使用命令
git push --set-upstream origin master

想要直接使用git pull代替git pull origin master If you wish to set tracking information for this branch you can do so with(如果要设置此分支的跟踪信>息,可以使用):
git branch --set-upstream-to=origin/ master