我从 file1-->file2 重命名了一个文件, git status 显示:
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: pathname/file1.xml
我做了一个 git rm "pathname/file.xml" 并准备提交:
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: pathname/file.xml
如何删除此文件?
在我提交和变基之后,我得到了
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add <file>..." to mark resolution)
added by us: path/file1.xml
no changes added to commit (use "git add" and/or "git commit -a")