git hint -short – The forgotten file


  1. You commit something in your repostiry.
  2. After that you notice that you forget the only one important file!  😈
  3. 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

Have fun!