0

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?

mickt
  • 35
  • 6

1 Answers1

2

The --no-edit flag does just that.

git commit -as --amend --no-edit
Romain Valeri
  • 17,132
  • 3
  • 30
  • 49