【发布时间】:2013-11-12 10:31:42
【问题描述】:
如果我执行git review git 会显示“工作树脏”错误。
我做了一个提交并发送给审查。之后,我使用git pull 从上游更新分支。现在我需要修改之前的提交信息,所以,有我的命令:
1) git reset <id-of-the-commit-to-modify>
2)git commit --amend
vim 被打开来修改我的提交。但是这里也出现了关于我的提交和其他提交的信息,我不知道为什么。但是,我修改了提交消息并写入/关闭 vim。
3)git review
此命令引发此错误:
Errors running git rebase -i remotes/gerrit/master
doc/source/configuration.rst: needs update
doc/source/developing.rst: needs update
tools/sample_data.sh: needs update
Working tree is dirty
我做错了什么?
【问题讨论】:
-
git status告诉你什么?
标签: gerrit git-commit git