Skip to content

Instantly share code, notes, and snippets.

View twisted-nematic57's full-sized avatar
๐Ÿ“
working in some way or another

akshat twisted-nematic57

๐Ÿ“
working in some way or another
View GitHub Profile
@twisted-nematic57
twisted-nematic57 / 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