通过 git reset 和 git checkout 进行版本回退之后再次 git pull 抛出以下错误:
|
1 2 3 4 5 |
You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> |
意思是当前的版本已经不在 master 分支了,解决的办法:
git status查看所有变化的文件,把有改动的先删除。git checkout master回到主分支。git pull拉取最新代码。








评论