【发布时间】:2021-11-11 02:54:34
【问题描述】:
每当我尝试跑步时:
git checkout main
我收到一个错误:
error: The following untracked working tree files would be overwritten by checkout:
README.md
Please move or remove them before you switch branches.
Aborting
我已尝试执行以下步骤:
-
git rm --cached README.md git checkout main没用。
-
git add -all git commit -m "initial commit" git checkout main还是一样的输出。
【问题讨论】:
-
@Joe,谢谢!这个链接帮助了我!!
标签: git github git-bash git-commit git-checkout