LoginSignup
11
5

More than 1 year has passed since last update.

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

Last updated at Posted at 2016-03-25

オプション -n を使えば良い。

$ git log -n 1 (1コミット分だけ表示)
$ git log -n 2 (2コミット分だけ表示)
$ git log -n 3 (3コミット分だけ表示)

もう一声

ハイフンの後に直接、数字を打っても良い。

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

( @tsuyoshi_cho さん情報 )

環境

  • git version 2.3.8 (Apple Git-58)

チャットメンバー募集

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

メンター受付

11
5
1

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
11
5