【记录】GIT 常用命令记录

1. 查看所有的提交版本,包含当你co到之前提交版本后依旧可以看到以前的日志

git log --graph --pretty=format:'%h -%d %s (%cr)' --abbrev-commit --reflog

2. 查看日志

  • git log可以查看提交历史,以便确定要回退到哪个版本。

  • git reflog查看命令历史,以便确定要回到未来的哪个版本。


原文地址:https://www.cnblogs.com/pengyusong/p/7772826.html