-2

I have I repository in git and I made a lot of tests to learn it. Now I am on a level to start working. But I have all these test commits, that are disturbing me. Can I remove all commits to start clean? But it means I do not want to remove the changes. The code should stay the way it is now. I just want to have an empty git log.

peace_love
  • 6,229
  • 11
  • 69
  • 157

1 Answers1

1

delete .git directory from project root and reinitialize project

git init
Samuel Robert
  • 10,106
  • 7
  • 39
  • 60