How to use TDD together with Git

When you dont know the requirements its hard to write a test. If you start implement the what you know and along the way you will probably discover new requirements. When you have a better understanding of the requirements. write the test, then I suggest to try to stash your prototype implementation and do write a new and better implementation. Inspired by Use Git tactically