Completely cleaning up git workspace

When developing software using git as version control system, sometimes there is the wish to completely reset your workspace, so that your snapshot is exactly as the snapshot in the repository. There shall no deleted, missing or additional files or folders that are not tracked. Furthermore git does not track folders. There shouldn’t any dead folders that git doesn’t care for. Let’s have a look how to do that. Continue reading