You just demonstrated losing something that was not in git... All you've demonstrated is that neglecting to put something into git is a good way of losing it.