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
  • 47
  • 1
  • 8

1 Answers1

2

The --no-edit flag does just that.

git commit -as --amend --no-edit
Romain Valeri
  • 19,645
  • 3
  • 36
  • 61