Is there a way to amend a commit without vi (or your $EDITOR) popping up with the option to modify your commit message, but simply reusing the prev
vi
$EDITOR
Another (silly) possibility is to git commit --amend <<< :wq if you've got vi(m) as $EDITOR.
git commit --amend <<< :wq