git版本管理之删除历史版本并提交当前版本

切换分支:git checkout --orphan latest_branch
添加到暂存区:git add -A
提交更改: git commit -am “commit message”
删除分支: git branch -D master
重命名分支: git branch -m master
强制提交到远程仓库:git push -f origin master
在这里插入图片描述