Last active
November 18, 2024 13:21
-
-
Save TheLime1/9f6c83d5596ea08f2fe231f6952b42eb to your computer and use it in GitHub Desktop.
how to delete git hustory of a repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout --orphan temp_branch | |
git add -A | |
git commit -am "Initial commit" | |
git branch -D main | |
git branch -m main | |
git push -f origin main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment