When I use git commit --amend or git rebase -i, vim opens up for me to make changes. If I then change my mind and exit vim without making any chang
git commit --amend
git rebase -i
:cq!
This will force an error to Vim and it will not save any changes. Link to Vim manual.
You may want to use cq without ! if you want vim to exit with an error and without saving.
cq
!
vim