Created
August 31, 2022 10:52
-
-
Save ivanvza/bed3647c8ffe1c29e0f8f983fb9ab41a to your computer and use it in GitHub Desktop.
delete git history
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 "First 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