Last active
May 8, 2026 09:08
-
-
Save flipeador/514d6c3173b0cc320d42e5af480ef7fc to your computer and use it in GitHub Desktop.
Clear GitHub Gist revisions 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 latest_branch | |
| git add -A | |
| git commit -am "commit" | |
| git branch -D main | |
| git branch -m main | |
| git push -f origin main |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear GitHub Gist revisions history.
Embed ↓button, select Clone via HTTPS, and copy the URL.git clone <URL>in the command prompt to clone the Gist repository.