Created
September 12, 2023 08:00
-
-
Save simonsan/03e7b35b52afe9479c3f8f051eb4a93d to your computer and use it in GitHub Desktop.
Prune repositories
This file contains 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 freshBranch | |
git add -A | |
git commit | |
git branch -D main | |
git branch -m main | |
git push -f origin main | |
git gc --aggressive --prune=all | |
git push -f origin main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment