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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/YLGWHYH/article/details/50393871

参考: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 voteaccepted

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.


阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页