Use Git to rewind time and write tests after refactoring | Dark Hacker News