在 GIT 中创建一个空分支

一、创建一个空白分支

git checkout --orphan <new_branch>
git rm -rf .

二、首次提交并推送到远程服务

echo > .gitignore
git add .gitignore
git commit -m "first commit"
git push origin <new_branch>
git
最后修改于:2022年04月24日 09:09

添加新评论