git checkout --orphan new
git commit -m "init"
git branch -d master
git branch -m new master
git push --set-upstream origin master -f
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所有历史
本文链接:https://www.haomeiwen.com/subject/gmliixtx.html
网友评论