Skip to content

How to clear already existing previous commit history? #2

Answered by melvinthomasdev
Souravak asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melvinthomasdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants