報錯信息如下
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 branch --set-upstream-to=origin/master master
這是因爲沒有指定分支到git倉庫上,想要使用git pull 和 git push命令來操作就要設置一下分支的信息。