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 分支名称
阅读 1666 · 发布于 2019-03-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
MySQL 备份工具 xtrabackup 安装和使用阅读 873
-
Prometheus+Grafana+nginx-lua-prometheus 监控 OpenResty阅读 941
-
PostgreSQL 修改数据库拥有者阅读 2345
-
Java 并发编程之 Semaphore阅读 773
-
Golang JSON Tag阅读 1755
-
Nginx 配置之屏蔽 IP 访问阅读 1401
-
Android RadioButton 选中改变颜色阅读 4858
-
Java 并发编程之 AQS CyclicBarrier 源码解析阅读 600
-
Spring 中的设计模式阅读 424
-
Docker No route to host阅读 644