LoginSignup
0
0

More than 1 year has passed since last update.

Git | $ git log limits the number of commits displayed

Last updated at Posted at 2019-04-16

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

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0