git 错误:error: The following untracked working tree files would be overwritten by checkout:

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

问题:
error: The following untracked working tree files would be overwritten by checkout:
解决:
方法1:
git 2.11 and newer
git clean -d -fx .
older git
git clean -d -fx “”
方法2:
git checkout -f another-branch

猜你喜欢

转载自blog.csdn.net/zfy1355/article/details/82218788