Topic on Talk:Gerrit/Tutorial

Forgot to branch master and then committed to gerrit

3
Summary by Tinss

Change the topic flag within gerrit's web UI.

Tinss (talkcontribs)

I absentmindedly forgot to branch master and then committed my change to gerrit. I know it's not the way things are supposed to be done, but do I need to abandon my change on gerrit and redo it?

Samwilson (talkcontribs)

You could rename the current branch (git branch -m new-name) and then review as normal. Or you could use the -t flag for git-review, and explicitly set the topic (git review -t new-name). I normally do the former in that situation. If later you do want a local master branch, you can just create it then (git checkout -b master gerrit/master).

Or there's probably another more correct way that I'm forgetting. :-) That's usually the case with Git.

Oh, sorry, I just realised: do you mean you've already pushed the change for review? In that case the topic flag is the way to go I think, or you can just change the topic via the web UI.

Tinss (talkcontribs)

Yes it's been pushed for review. I've set the topic flag in gerrit. Thanks!