在Github上新建一個帶有Readme.md的倉庫,并且第一次將它pull到本地新的倉庫時,經(jīng)常出現(xiàn)
$ 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 pull origin [branchname] --allow-unrelated-histories