我试过了pull origin a
。
并执行以下操作:
error: Your local changes to the following files would be overwritten by merge:
src/.cproject
src/.project
src/navigate/navigate_main.c
Please, commit your changes or stash them before you can merge.
Aborting
git 状态显示:
modified: .gitignore
modified: src/.cproject
modified: src/.project
modified: src/navigate/navigate_main.c
我做git rm --cached src/.project
了前3个和stashed
第4个
我确实再次拉动并取消了我的更改。
但是当我这样做时pull origin a
我得到:
M .gitignore
U src/.cproject
M src/navigate/navigate_main.c
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
我怎样才能一劳永逸地清理这个?