Re: git pull not ignoring the file which has been sent to the temporary ignore list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 23, 2015 at 10:35 AM, Arup Rakshit
<aruprakshit@xxxxxxxxxxxxxx> wrote:
> On Friday, January 23, 2015 11:31:40 AM you wrote:
>> Arup Rakshit <aruprakshit@xxxxxxxxxxxxxx> writes:
>>
>> > I asked git not to track any changes to the file .gitignore. To do
>> > so I did use the command - git update-index --assume-unchanged
>> > .gitignore.
>>
>> You are not asking Git to do anything. You promised Git that you
>> will make no changes to .gitignore, and then broke that promise.
>>
>> Assume-unchanged is *not* "Ignore changes to this path".
>
> Ok. How should I then ignore any local changes to the .gitignore file ? And while taking pull, git should skip this file ?

Look at .git/info/exclude

When looking for a reference to that path (I am bad at remembering
which man page that is)
I found https://help.github.com/articles/ignoring-files/ as Googles
first hit, which advises to use
    git update-index --assume-unchanged path/to/file.txt
Not sure if that is most helpful advice there.

See http://git-scm.com/docs/gitignore instead
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]