When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file:
1 $ rm .git/refs/heads/origin/branch-name
本文介绍了一种情况,即在Git操作中意外创建了指向origin的本地分支引用,导致.git/refs/heads/origin/branch-name文件出现。文章详细解释了如何通过简单的rm命令来删除这个不需要的文件。
When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file:
1 $ rm .git/refs/heads/origin/branch-name
转载于:https://www.cnblogs.com/cheng6018/p/9431729.html

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