参考:https://stackoverflow.com/questions/7630693/git-warning-of-file-overwriting-due-to-supposedly-untracked-files/7630711#7630711

git sourceTree拉取遇到的问题

checkout: Please move or remove them before you can switch branches. Aborting could not detach HEAD


解决方法:

down vote accepted

They're tracked in the version you're checking out, but not in the version you had checked out previously. If you don't care about the untracked versions, just remove them.

If you do care about them, commit them before doing the rebase. You may then have to merge as part of the rebase process.


Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐