search

Home  >  Q&A  >  body text

git log --graph order of commit records

When I used git log --graph to view the submission tree, git did not arrange the submission records in the order of submission time.

Commands I used:

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]'

But when I use egit to view it, I can sort it by submission time. Is there an additional parameter to control it, or is it a bug? ?

PHPzPHPz2792 days ago759

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