Open Catcheer opened 7 years ago
意思是你必须指定你要pull到远程仓库的哪个分支上,所以用 git pull origin(远程分支) master。这样可以pull 成功。但是必须每次pull都要指定本地与远程分支。 一劳永逸的解决两种方法: 1.修改git文件夹下config文件,添加
[branch "master"]
remote = origin
merge = refs/heads/master
2.命令行执行
git branch --set-upstream-to=origin/master master
关联远程仓库后,git pull 时提示 There is no tracking information for the current branch. Please specify which branch you want to merge with.
If you wish to set tracking information for this branch you can do so with: