Read more

How to configure case insensitive git output

Michael Leimstädtner
July 25, 2023Software engineer at makandra GmbH

Git commands like diff use the less binary for their output representation.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

I often find myself searching for strings like todo, then switching to the case-insensitive mode (-i) and re-doing my search.
Today I figured out that you can configure git to show case insensitive diffs every time:

git config --global core.pager 'less -i'
Posted by Michael Leimstädtner to makandra dev (2023-07-25 13:45)