Some of your uncommitted changes would be overwritten by syncing.Please commit your changes then try
2014-04-17 14:34
387 查看
解决方法有三种,在GitHub shel中输入以下命令,任选一种方法就能解决问题
git reset --hard HEAD
-- Destructive. When you do this you'll throw away everything you've done up to that point and be back at the last HEAD before you made any changes.
git commit
-- In the middle. With this you're committing your changes which will get rid of the error but if the changes aren't complete its probably superfluous.
git stash -u
-- My recommendation. With this you're able to "stash" or set aside the changes you've made up until this point. Then you can pull from a remote without interfering. Once you've done that you can run a
git stash popwhich will put back all of the changes you've made (without committing them).
相关文章推荐
- Some of your uncommitted changes would be overwritten by syncing.Please commit your changes then try
- Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.的问题解决(Git代码冲突)
- Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.的问题解决(Git代码冲突)
- Py第十九问 Your local changes would be overwritten by merge. Commit, stash or revert them to proceed.
- your local changes would be overwritten by merge. commit stash or revert them to proceed. view them
- git提示 error: Your local changes to the following files would be overwritten by merge:
- git 错误信息 6 uncommitted changes would be overwritten by merge
- git提示 error: Your local changes to the following files would be overwritten by merge:
- Error pulling origin: error: Your local changes to the following files would be overwritten by merge
- Your local changes to the following files would be overwritten by merge:
- git提示 error: Your local changes to the following files would be overwritten by merge:
- 解决error: Your local changes to the following files would be overwritten by merge
- [Git] error: Your local changes to the following files would be overwritten by merge
- [Git] error: Your local changes to the following files would be overwritten by merge
- git提示 error: Your local changes to the following files would be overwritten by merge:
- git提示 error: Your local changes to the following files would be overwritten by merge:
- Your local changes to the following files would be overwritten by merge
- Error pulling origin: error: Your local changes to the following files would be overwritten by merge
- git提示 error: Your local changes to the following files would be overwritten by merge:
- git pull 时出现 error: Your local changes to the following files would be overwritten by merge的解决办法