Skip to content

Instantly share code, notes, and snippets.

View HackerDaGreat57's full-sized avatar
📝
working in some way or another

HackerDaGreat57

📝
working in some way or another
View GitHub Profile
@HackerDaGreat57
HackerDaGreat57 / git_create_orphan.sh
Created October 9, 2022 03:33 — 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