仓库瘦身 命令 # 更新 git pull # 创建init分支 git checkout --orphan temp git commit -m "init" # 删除旧master分支 git branch -D master # 重命名temp为master git branch -m temp master # 强更新 git push -f -u origin master