Git

Git | $ git log limits the number of commits displayed

Use the option -n .

$ git log -n 1 (display $ git log -n 2 one commit) $ git log -n 2 (display $ git log -n 3 two commits) $ git log -n 3 (display for three commits)


Another voice

You may type a number directly after the hyphen.

$ git log -1 $ git log -2 $ git log -3

(@tsuyoshi_cho information)


environment


  • git version 2.3.8 (Apple Git-58)


Original by

Git | $ git log で表示するコミット数を制限する


About

About this translattion