When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file。
执行 rm .git/refs/heads/origin/分支名
再checkout
本文介绍了一种常见的git操作错误,即创建了.git/refs/heads/origin/分支名文件,并提供了正确的解决方案:删除该文件并重新进行checkout操作。这一过程帮助解决了由错误操作引起的git工作流问题。
When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file。
执行 rm .git/refs/heads/origin/分支名
再checkout
转载于:https://www.cnblogs.com/cheng6018/p/8474536.html

被折叠的 条评论
为什么被折叠?