Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 378 Bytes

git-log.md

File metadata and controls

27 lines (18 loc) · 378 Bytes

提交记录

查看提交记录

$ git log

graph

$ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative

查看记录详情

$ git show <commit>

切换到指定版本

$ git checkout  <commit>

<commit>git log对应的commit