1.github回退版本,同步远程仓库
git log 查看commit hash值
git log --pretty=oneline
2.本地回退代码
git reset --hard 版本的ID
3.删除线格式 强制推送到远程仓库代码,与本地代码版本同步
git push -f -u origin master
无效使用下一条命令
git push -f
1.github回退版本,同步远程仓库
git log 查看commit hash值
git log --pretty=oneline
2.本地回退代码
git reset --hard 版本的ID
3.删除线格式 强制推送到远程仓库代码,与本地代码版本同步
git push -f -u origin master
无效使用下一条命令
git push -f