我只是想能寫:如何設置`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