Home  >  Q&A  >  body text

git log --graph 提交记录的顺序问题

我用 git log --graph 查看提交树时,git 没有按提交时间的先后顺序来排列提交记录。

我使用的命令:

git log --graph --pretty=format:'%C(bold red)%h %Creset- %C(bold yellow)%d %C(bold cyan)%s %C(bold green)[%cr] %C(bold magenta)[%cn] %C(bold green)[%ci]'

但是我用 egit 查看时能够按提交时间排列,难道是有额外的参数来控制,或者是个 bug ??

PHPzPHPz2707 days ago709

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:29:14

    git log --help Open the help document, search for Commit Ordering, and you will find a --date-order parameter, which can arrange submission records according to submission time.

    reply
    0
  • Cancelreply