Monday, January 2, 2017

Exclude a file from a git commit

?
1
2
3
4
5
git update-index --assume-unchanged path/to/file.txt
 
git commit -a -m "updated some files but excluded this"
 
git update-index --no-assume-unchanged path/to/file.txt