Git 命令之回退到指定 commit
Git 大约 171 字1. 查看提交日志
git log
# 已经删除的commitId可以用git reflog查看
git reflog
2. 本地代码回到指定的commitid hard模式
git reset --hard commitid
3. git服务器代码回到指定的commitid
git push -f origin 分支名称
阅读 2324 · 发布于 2019-03-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
IDEA Rainbow Brackets 插件高亮显示各类括号阅读 1094
-
Java 中的 InheritableThreadLocal阅读 1739
-
IDEA 复制弹框错误提示信息快捷键阅读 883
-
GoJS 更改 Overview 的拖动框颜色阅读 1266
-
macOS 打开 VisualVM 直接闪退解决方法阅读 35
-
Spring Boot Undertow 上传文件后没有可读权限阅读 5124
-
软考-系统架构设计师:存储管理-段页式存储组织阅读 3601
-
PHP 设置 json_encode 不转义中文阅读 1941
-
Windows 网络适配器显示:网络管理员已经禁用了 Internet 连接共享阅读 2285
-
MySQL 最后一次查询花费时间阅读 2035