Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get topic branch from gerrit

One developer pushed pack of patches to a gerrit under topic "test_topic". For example :)

I want to get all this patches on my development branch. Are there easy way to do this? For now, I am using some magic, involving gerrit query, grep, sort, awk and then git rebase -i.

But, I am feeling, there are easy way. Possibly, using repo command. Nevertheless, I can't find this way,

like image 204
werewindle Avatar asked Nov 21 '25 07:11

werewindle


1 Answers

You should be able to just pull down all the changes at once with the 'git pull' command you can copy-paste from Gerrit's web interface on the top-most change. If you have local commits and don't want git to create a merge, look into the --rebase argument you can pass to git pull.

like image 109
Brad Avatar answered Nov 22 '25 20:11

Brad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!