How to clear already existing previous commit history? #2
-
How to clear already existing previous commit history? |
Beta Was this translation helpful? Give feedback.
Answered by
melvinthomasdev
Nov 17, 2022
Replies: 1 comment
-
Hey, This will remove all commit history and the directory will no longer be a git repository. You can reinitialize the repository with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
melvinthomasdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
You can remove the commit history by removing the .git directory
This will remove all commit history and the directory will no longer be a git repository. You can reinitialize the repository with
git init
and start fresh