版权声明:本文为博主原创文章,未经博主允许不得转载。 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