码迷,mamicode.com
首页 > 其他好文 > 详细

git远程服务器回滚

时间:2018-07-17 14:22:26      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:ranch   服务   远程   eset   url   git   提交   仓库   查找   

1、git log查找commit hash

2、git reset --hard hash 回滚本地git库

3、git push -f origin(git仓库的url) branch名 强制提交

git远程服务器回滚

标签:ranch   服务   远程   eset   url   git   提交   仓库   查找   

原文地址:https://www.cnblogs.com/Entr0py/p/9322718.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!