git回滚节点操作

26 阅读1分钟

回滚操作: 0.查看提交的日志[非必要]

git log

1.找到要回滚的节点id,执行

git reset--hard [节点id]

2.把回滚的代码强制推到远程分支

git push --force