ESSAY / NOTE

git回滚代码

1. git log // 查询要回滚的 commit_id
2. git reset --hard commit_id // HEAD 就会指向此次的提交记录
3. git push origin HEAD --force // 强制推送到远端
删除 commit 的三种方法 https://www.jianshu.com/p/c9f131e22a60