0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git branch の結果をlessではなくcatっぽく表示させるための設定

Last updated at Posted at 2020-07-12

はじめに

Macを初期化すると、git branchしたとき、

* develop
  master
(END)

というように結果がページャ(lessコマンドなどのようにページ送りできる昨日)で表示されるようになっていた。

おそらくgitのバージョンが変わったためだと思われるが、
もともと

± % git branch
* develop
  master

といった感じでcatしたみたいにコマンドの下に結果を表示してくれる設定に慣れていたので、その設定に戻した。

個人的にこの設定方法を見つけにくかったので、メモをここに残しとく

設定方法

gitconfigのpage.branchで設定できるようなので、

git config --global pager.branch cat

とするか

直接~/.gitconfig

[pager]
        branch = cat

と書いてしまえばOK

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?