解决GIT代码仓库不同步问题

问题

当在用git pull时,出现了如下问题:

error: Your local changes to the following files would be overwritten by merge:  
        XXXX文件 
Please, commit your changes or stash them before you can merge. 
Aborting

解决办法

执行git checkout -f,然后再执行git pull重新获取代码库的最新代码

你可能感兴趣的:(git)