【1】执行 git pull 命令时,错误提示:
Your configuration specifies to merge with the ref 'refs/heads/task_floor_display' from the remote, but no such ref was fetched.
如上问题,产生原因与解决方案:
场景1:远程端同名分支已被删除。
解决方案:重新建个分支,如下命令:
1 1 ---------------------------------------------------------- 2 2 git checkout integration 3 3 git pull 4 4 git branch task_floor_display 5 5 git push origin task_floor_display 6 6 git push --set-upstream origin task_floor_display 7 7 git checkout task_floor_display 8 8 git pull 9 9 ----------------------------------------------------------
场景2:远程端同名分支仍然存在。
解决方案:备份(因为clean up会删除掉)好多余代码,在本地代码source根目录下,执行clean up命令,然后再执行git pull命令。