- You commit something in your repostiry.
- After that you notice that you forget the only one important file! 😈
- You feel shrity and create a redundant commit.
Meanwhile you may insult your git repository like I did…
If you know that story,- calm down. There is a quick way to handle this…
? Simply add the fogotten file to the indey
? Do a new commit using the option –amend
git add forgotten.file git commit --amend -C HEAD