从推送到gerrit的更改中删除“相关更改”

时间:2018-12-21 22:04:05

标签: git gerrit

推送到Gerrit时,我使用了以下命令:

git pull origin <remoteBranch>
git add <file1> <file2>
git commit -m "<message>"
git push origin <localBranch>:<remoteBranch>

我应该做的时间:

git stash
git fetch
git rebase
git stash apply
git add <file1> <file2>
git commit -m "<message>"
git push --progress "origin" <localBranch>:<remoteBranch>

现在,我在Gerrit中列出了“相关更改”,由于它们没有修改的代码,因此没有用。此外,“相关更改”堵塞了日志。 “相关更改”如下:

Merge branch <remoteBranch> of ssh://<url> into <localBranch>
Merge commit <referenceNumber> of ssh://<url> into <localBranch> test

如何删除这些“相关更改”?最好直接在Gerrit UI中将其删除。但是,如果有通过命令行执行此操作的方法,将不胜感激。

0 个答案:

没有答案