【记录】GIT 常用命令记录

时间:2022-08-28 21:29:05

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

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

2. 查看日志

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

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