Skip to content

Instantly share code, notes, and snippets.

@alesvaupotic
Created December 30, 2020 14:26
Show Gist options
  • Save alesvaupotic/5857edaf474756185924d73ebb4e0e91 to your computer and use it in GitHub Desktop.
Save alesvaupotic/5857edaf474756185924d73ebb4e0e91 to your computer and use it in GitHub Desktop.
Lose all commit history of a project
git init
git remote add origin git@github.com:USERNAME/REPOSITORY.git
git add *
git commit -am 'Init'
git push -f origin HEAD:main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment