amend

Crap, I forgot to commit some changes

What now?

amend to the rescue

amend

Oh I'll just make a new...

If you create "i forgor 💀" commits I will find you...
and be very angry.

We want to do things the right way.

amend

Doing stuff the proper way

  1. First we add the change we forgot
  2. Then we tell git to add our changes to the last commit
  3. git will then ask us to edit our commit message

In commands:

git add file-i-forgot.txt
git commit --amend
amend

What if we do not want to add our changes to the last commit?

It can be done, but we need some other tools that we will tackle later