![在这里插入图片描述](https://img-blog.csdnimg.cn/7af64a1b6c094d2489e1dfb2bbd88070.png)
- git add . 全部提交到仓库
- git commit -m “添加说明”
- git push 提交到远程github仓库
- git log 使用git log命令查看commit记录
- git reset --hard 4ba182e (填写相应的hash值)
因为本地回滚了,所以和远程会差几个版本。所以这时候只有强制推送,覆盖远程才可以。
- git push -f
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)