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.
Asked
Active
Viewed 61 times
-2
-
As i know it is not possible to delete commits from git – Jens Jun 05 '18 at 09:11
-
do you want to make single commits all the changes? or you want to see all the files as a modified in git status but have no commits.? – rahul mishra Jun 05 '18 at 09:20
1 Answers
1
delete .git directory from project root and reinitialize project
git init

Samuel Robert
- 10,106
- 7
- 39
- 60