bzt wrote:
Thank you! Good to know!
Glad it made sense.
I think the problem was I never edit the commit message.
The problem was that you didn't use --amend for the second commit.
I always use "-m" because I'm more of a command line guy. I'll change my habit!
You can still use -m together with --amend, but if you know that you want to keep the commit message unchanged then you can use -M HEAD instead, to skip the editor:
git clone
## first try # edit somefile git add somefile git commit -m 'somfile: Changes' # push to gerrit, receive feedback
## second try # edit somefile again git add somefile git commit --amend -M HEAD # push to gerrit again
Sorry again about the accidental extra PR.
Don't worry about that, no problem at all.
//Peter