最后活跃于 1729816923

Create an orphan branch on your git repository

Korbs's Avatar Korbs 修订了这个 Gist 1729816923. 跳至此修订

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
更新 更早