通过orphan分支删除git所有历史
2017-12-11 本文已影响0人
helphi
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