So, apparently I removed an entire directory. A long time ago in the history. But I want it back. I want it back for good. git checkout <commit id> -- <path-to-directory> Will checkout the directory nicely, thus restoring it. Also for files, etc.
This is a simple blog to help me remember those cool code snippets which I used. Either by copy, or by cobbling... I do not intend this to be read by people except for me and my bad mind.