ABC. Always be committing. If you don't remember why you did it then it's already too late. Take frequent notes on what you do and why. Leave code comments whenever applicable. Remember, taking notes and commenting code isn't just helping other people. It's also helping yourself.