1. 提交记录

1.1. 查看提交记录

$ git log

1.1.1. graph

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

1.2. 查看记录详情

$ git show <commit>

1.3. 切换到指定版本

$ git checkout  <commit>

<commit>git log对应的commit

results matching ""

    No results matching ""