How do you git fetch then merge? “Error: Your local changes to the following files would be overwritten by merge”

你。 提交于 2019-11-27 19:05:19

You can either commit your changes before you do the merge, or you stash them:

git stash
git merge origin/master
git stash pop

If you want to keep your changes, you can commit your changes to your local repository first and then merge the remote repository.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!