Get the latest tech news
Converting a Git repo from tabs to spaces (2016)
This post is about the thing in the title. I used to work for Yelp.
Thankfully, Yelp mostly does work on beefy shared dev machines, so I only had to bug an ops person to stick this incantation in/etc/gitconfig and wait for Puppet. Also, BSD (i.e. OS X) expand apparently doesn’t have the--initial argument, but unless you’re in the habit of sprinkling tab characters inside string literals, you can safely leave it off. The problem was that git dutifully applied the smudge filter when checking this file out, converting it to spaces on-disk… but the copy in the repository still had tabs, making it appear modified.
Or read this on Hacker News