美文网首页
Git报错的处理方法

Git报错的处理方法

作者: Dorazzz | 来源:发表于2018-01-05 16:46 被阅读0次

1.在IDEA中进行分支切换时,出现如此错误,导致无法正常切换:

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

解决方法:git clean -d -fx

2.merge导致冲突时或是不想提交代码了,导致无法正常PUSH:

Pull is not possible because you have unmerged files.

解决方法:

git log

git reset --hard FETCH_HEAD

相关文章

网友评论

      本文标题:Git报错的处理方法

      本文链接:https://www.haomeiwen.com/subject/ntesnxtx.html