1

I'm a using git-bash on windows. Is it possible to inhibit the popup that appears after I run:

'git commit -a --amend'

Thanks

Kam
  • 5,878
  • 10
  • 53
  • 97
  • possible duplicate of [git commit --amend --use-existing-message? (no editor interaction)](http://stackoverflow.com/questions/10237071/git-commit-amend-use-existing-message-no-editor-interaction) – Sascha Wolf Aug 12 '14 at 15:17

2 Answers2

3

You can try (git commit) a:

git commit -a --amend --no-edit

That avoid editing the commit message when amending the content of a git commit.

Use the selected commit message without launching an editor


The other option would be --reuse-message=<commit> if you wanted to reuse the the log message and the authorship information (including the timestamp) of a commit.
In your case: HEAD (or @)

git commit -a --amend -C @
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

Since git 1.7.9 version you can use git commit --amend --no-edit to ignore the message popup.

Dong Thang
  • 410
  • 6
  • 6