Last active 1729816923

Create an orphan branch on your git repository

Korbs's Avatar Korbs revised this gist 1729816923. Go to revision

1 file changed, 8 insertions

gistfile1.txt(file created)

@@ -0,0 +1,8 @@
1 + cd repository
2 + git checkout --orphan NEW_ORPHAN_BRANCH_NAME
3 + git rm -rf .
4 + rm '.gitignore'
5 + echo "# New Orphan Branch" > README.md
6 + git add README.md
7 + git commit -a -m ":rocket: Init"
8 + git push origin NEW_ORPHAN_BRANCH_NAME
Newer Older