Skip to content

Instantly share code, notes, and snippets.

@TheLime1
Last active November 18, 2024 13:21
Show Gist options
  • Save TheLime1/9f6c83d5596ea08f2fe231f6952b42eb to your computer and use it in GitHub Desktop.
Save TheLime1/9f6c83d5596ea08f2fe231f6952b42eb to your computer and use it in GitHub Desktop.
how to delete git hustory of a repo
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