LoginSignup
5
3

More than 5 years have passed since last update.

いつの間にかgitでデフォルトのページャがlvになっていた件

Last updated at Posted at 2016-07-01

僕は何にもやってないのに git log / diff ができなくなった(怒)

原因がわからないが、社内用のWindowsマシン社内で使っているCentOSのサーバ上に
WindowsからTera Termで接続し、 git log とか git diff をしようと思ったら、

error: cannot run lv: No such file or directory

と出力。以前まで見れていたログが見れない(悲)。
どうも自分の環境だけのようだ。

解決方法は lv をインストールするか、

$ git config --global core.pager 'less'

などでデフォルトのページャを変更すればよい。

ちなみに自分のmacbookAirでこれを再現しようとしたところ、
上記のエラーが出るも、ログを確認することができた。
自動でlessが実行されたようだ。

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