Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save toufik-airane/981f2e81134bc85e5d9d46161a185c01 to your computer and use it in GitHub Desktop.

Select an option

Save toufik-airane/981f2e81134bc85e5d9d46161a185c01 to your computer and use it in GitHub Desktop.
git checkout --orphan latest_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