沒有指定branch報錯java
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
設置master對應遠程倉庫的master分支
git
git branch --set-upstream-to=origin/master master
之後咱們每次push或者pull的時候,只須要輸入git push 或者git pull
在此以前,咱們必需要指定想要push或者pull的遠程分支
this
git push origin master git pull origin master.