From: Junio C Hamano Date: Sun, 20 Nov 2011 21:16:27 GMT Subject: Re: Bug report - local (and git ignored) file silently removed after checkout Message-ID: <7vehx2ijf8.fsf@alter.siamese.dyndns.org> In-Reply-To: Bertrand BENOIT writes: > Context: > - in previous version of my project, the TODO file was versioned > - in current development version, this file is NO more versioned AND > it is ignored by a gitignore rule,... What you observed is expected with all the versions of Git since the gitignore mechanism was introduced. The ignored files are "not tracked, are cruft that can be removed to make room if it is necessary for checking out a tracked version, and would not want to track (e.g. build artifacts like '*.o')" (I am not saying that it is the most sane semantics, I am just stating the fact). We do not have "not tracked, but precious (e.g. your TODO)" category; from time to time we have discussed possibilities of adding such to enrich the categorization, but nobody stepped up to actually do the work of designing let alone coding such a beast.