Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.4k points)

Is there a way to amend a commit without vi (or your $EDITOR) popping up with the option to modify your commit message, but simply reusing the previous message?

1 Answer

0 votes
by (27.5k points)

Here's a command that should do the magic

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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...