Skip to content

Instantly share code, notes, and snippets.

View Kohstantih's full-sized avatar

Konstantin Kohstantih

  • 16:14 (UTC -12:00)
View GitHub Profile
@Kohstantih
Kohstantih / git_create_orphan.sh
Created October 8, 2023 18:50 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name