我只是想能写:如何设置`git pull`来做`git pull origin master`呢?
$ git pull
// does the same as $ git pull origin master
$ git push
// does the same as $ git push origin master
除了目前当我做$ git pull
我得到:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
的[使现有的Git分支轨迹可能的复制一个远程分支?](https://stackoverflow.com/questions/520650/make-an-existing-git-branch-track-a-remote-branch) –
答案在问题中。 – axiac
请考虑花15秒钟实际读取您粘贴到您的问题中的'git pull'的输出。 Git命令可能会产生令人困惑的输出,但我认为这是一个非常明确反馈的例子。 – Chris