Re: git overwriting local ignored files?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 24, 2018, 04:22 UTC
- Message-ID
- <xmqqftvr2jfo.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <a852c0e9-f278-8e2a-406c-bb6099b2440c@mandelberg.org>
David Mandelberg <david@mandelberg.org> writes:
Show 6 quoted lines
> It seems that git is overwriting my local files on merge if they're in > .gitignore. See command transcript below. I searched `git help config` > and Google, but I couldn't find any way to prevent it. Am I missing > something? (The reason I care about ignored files is that I'm using > git with a working directory of $HOME to manage my dotfiles, and most > files in my $HOME are not tracked by git but are still important.)
The .gitignore file is to list "ignored and expendable" class of files; there is no "ignored but precious class" in Git.