Skip to content

Instantly share code, notes, and snippets.

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