Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created June 28, 2024 05:39
Show Gist options
  • Save un4ckn0wl3z/6c2537064062920c71b52b64702ccee1 to your computer and use it in GitHub Desktop.
Save un4ckn0wl3z/6c2537064062920c71b52b64702ccee1 to your computer and use it in GitHub Desktop.
git orphan
git checkout --orphan orphan_data
git add -A
git commit -am "fix: orphaned"
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