git pull没有指定branch报错

没有指定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.
相关文章
相关标签/搜索