您的位置:首页 > 编程语言

Git gerrit 提交代码Review 返回后修改步骤 以及git操作

2014-07-16 19:01 1096 查看
gerrit review 代码,git 修改后重新提交

1.git reset commit_id 返回此次提交前

2. 修改完毕后,git add -u .

3. git commit --amend 修改并进行comment加上changeID

4.git push origin HEAD:refs/for/XXXX_branch

gerrit revie 代码,git 提交 review 出现问题,但后来了又提交了新东西,这个时候

commit 1 new

commit 2

commit 3 oldest

1. git rebase oldest^ --interacitve [会弹出VI 让进行编辑 PICK EDIT,选 EDIT 即可]

2. 赶紧修改

3. git add -u .

4. git commit --amend [编辑]

5. git rebase --continue

6. over
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐