Posts Tagged With 'git'

git update-index —assume unchanged

Written by Tracy Poff in misc on Mon 12 October 2015. Tags: git,

Thanks to this stackoverflow question, I’ve learned a useful git trick:

git update-index —assume-unchanged [ …]

and its counterpart:

git update-index —no-assume-unchanged [ …]

This pair of commands lets me keep a default file in the repo (e.g. a sample config) and modify it locally without git complaining about changed files. Handy!