Re: getting git to ignore modifications to specific files
- From
Jan Krüger <jk@jk.gs>
- Date
- Sep 2, 2010, 09:25 UTC
- Message-ID
- <20100902112531.160b09bd@jk.gs>
- In-Reply-To
- <4C7EA1FF.8030307@gmail.com>
Chris Packham <judge.packham@gmail.com> wrote:
> I did a bit of googling and found > git update-index --assume-unchanged > > Which works locally to stop git status from complaining.
Be careful with that, as it's technically meant to be used for another purpose (e.g. slow filesystems). Notably, git reset --hard will still kill your local modifications. In your case it seems to be about automatically generated files so it's no big problem, but it might still cause a bit of confusion, so I thought I'd warn you anyway.
-Jan