首先查看历史版本,按q退出
git log
回退
git reset –-hard af58//af58是从log里面看到的记录
删除远程分支
git push origin :dev
推送本地分支
git push origin dev:dev