git 创建一个空分支

git 创建一个空分支


git checkout --orphan new_branch_name
git rm -rf .

git add file

git commit -m 'log'

reference:
https://www.cnblogs.com/wangyingblock/p/10431183.html

posted @ 2022-01-17 10:47  王阳开  阅读(392)  评论(0)    收藏  举报