在使用git pull命令时报错:
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 reset --hard
git pull
在使用git pull命令时报错:
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 reset --hard
git pull
老杨
博士,非博学之士;讲师,讲所学所知。糊涂半生,虚度半世,唯愿平淡快乐,度过此生。

git stash一下
@游客 是的,这个命令也是可以的,谢谢提醒。