Monday, November 1, 2010

Ignore changes to a file in Git

Temporarily ignore changes to a file in git:
git update-index --assume-unchanged filename
To start tracking changes to the file again, run:
git update-index --no-assume-unchanged filename
source: http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html

No comments:

Post a Comment