4 ms·
And if -m inline message gets screwed up, --amend to the rescue: git commit --amend This will open $EDITOR and let you edit the commit message. It will also
by OnACoffeeBreak 6y ago
And if -m inline message gets screwed up, --amend to the rescue:
git commit --amend
This will open $EDITOR and let you edit the commit message. It will also modify commit content if you stage changes before it.
- masklinn 6y agoI've set up an alias for `commit --amend --no-edit`, this way merging new stuff into a commit is easy, and editing the commit message is just a `-e` away (`-e` flips `--no-edit` back on). The only concern is the odd situation where I'd staged something before realising I was missing bits in the commit message.
- abledon 6y agoi love those in alias, gca, gcane. Then when pair programming I can say "Time to pull out the G-Cane"