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

来源:互联网 发布:sweet alert.min.js 编辑:程序博客网 时间:2024/06/10 11:37
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

0 0
原创粉丝点击