【记录】GIT 常用命令记录

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

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

2. 查看日志

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

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

 

 

 

 

 


posted @ 2017-11-02 16:20  彭玉松  阅读(162)  评论(0编辑  收藏  举报