Currently I am doing this to amend my changes to the most current commit:
$ git add .
$ git commit --amend
Is there a way to stage and amend in one command?
Currently I am doing this to amend my changes to the most current commit:
$ git add .
$ git commit --amend
Is there a way to stage and amend in one command?
Woops, Just found out this would work.
Didn't know -a
and --amend
could be used together.
I am putting answer to my own question in case someone wondering the same.
git commit -a --amend