Add file to last Git commit

Last update in 8/2019

Yeah, we've all been there. You accidentally committed but forgot to add one file. Quick! Search how to undo it on Stack Overflow! This comment looks nice, lets copy it in terminal. Ohh, this command messed up my whole project. I guess I'll just delete and clone last version from Github.

You have sure encountered this issue many times, I certainly have. But you shouldn't anymore!

All you need to is run this command.

git commit --amend