From: Johannes Sixt Date: Sun, 19 Mar 2017 21:33:33 GMT Subject: Re: Is there a way to have a local version of a header file? Message-ID: <5d06ba31-bec1-0172-cb00-10b4d2c4e648@kdbg.org> In-Reply-To: Am 19.03.2017 um 00:22 schrieb Samuel Lijin: > I'd just provide a .sample and tell people what to do with it in the > README. The alternative is to provide config.h as is and tell people > to use "git update-index --assume-unchanged" immediately after cloning > to ignore changes to the file, but this is prone to people > accidentally committing credentials. Please do not suggest to use --assume-unchanged. It is not intended for this purpose, and if used in the way you suggest, it will sooner or later bite back. --assume-unchanged is a promise to Git that you do not change the file. If you break the promise, you get what you deserve ;) -- Hannes