I'm trying to amend a git commit via a shell script.
#!/bin/bash
git commit -as --amend
The script stalls waiting for me to enter :wq!
git commit -m "some message" is fine in script, exiting as desired but not for amend. Can anyone advise on this?