3days since the last Git and AI fuck-up

How to add staged changes to your previous commit in Git?

Mandeep Singhfrom the archive

To add staged changes to the previous commit, use the following command:

shell
git commit --amend

If you don't want to modify the commit message, you can instruct git to reuse that commit message:

shell
git commit --amend -C HEAD

Originally Posted On: Github (k88hudson)

Tagged solving-mistories, git-commit, git-add