git checkout --orphan new
git commit -m "init"
git branch -d master
git branch -m new master
git push --set-upstream origin master -f
通过orphan分支删除git所有历史
最新推荐文章于 2024-05-08 09:26:23 发布
git checkout --orphan new
git commit -m "init"
git branch -d master
git branch -m new master
git push --set-upstream origin master -f