Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alesvaupotic/d87fb6381ee414327de3d55b478dfb83 to your computer and use it in GitHub Desktop.
Save alesvaupotic/d87fb6381ee414327de3d55b478dfb83 to your computer and use it in GitHub Desktop.
Clear repository history - upload as fresh project
rm -rf .git
git init
git add .
git commit -m "Initial commit"
git branch -m main
git remote add origin git@github.com:USERNAME/REPO.git
git push -u --force origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment