Skip to content

Instantly share code, notes, and snippets.

@gorpello
Last active October 24, 2022 09:55
Show Gist options
  • Save gorpello/2793d11c7ac5b19a33ef0a5c4e0c6bc2 to your computer and use it in GitHub Desktop.
Save gorpello/2793d11c7ac5b19a33ef0a5c4e0c6bc2 to your computer and use it in GitHub Desktop.
  • Checkout
git checkout --orphan latest_branch
  • Add all the files
git add -A
  • Commit the changes
git commit -am "First Release"
  • Delete the branch
git branch -D main
  • Rename the current branch to main
git branch -m main
  • Finally, force update your repository
git push -f origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment