在 GIT 中创建一个空分支
warning:
这篇文章距离上次修改已过285天,其中的内容可能已经有所变动。
一、创建一个空白分支
git checkout --orphan <new_branch>
git rm -rf .
二、首次提交并推送到远程服务
echo > .gitignore
git add .gitignore
git commit -m "first commit"
git push origin <new_branch>