git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Stefan Beller <sbeller@google.com>
Date
Jan 23, 2015, 20:12 UTC
Message-ID
<CAGZ79kbk=DFcMSVtnWHw7Vn-xm4q4x5T_9qiPrqt5oN1DMhFSw@mail.gmail.com>
In-Reply-To
<4004424.cytMaov38D@linux-wzza.site>

On Fri, Jan 23, 2015 at 10:35 AM, Arup Rakshit <aruprakshit@rocketmail.com> wrote:

Show 13 quoted lines
> On Friday, January 23, 2015 11:31:40 AM you wrote:
>> Arup Rakshit <aruprakshit@rocketmail.com> 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
Previous: Arup RakshitNext: Junio C Hamano
Message 4 of 10 in “git pull not ignoring the file which has been sent to the temporary ignore list”
  1. Arup RakshitJan 23, 2015
  2. Junio C HamanoJan 23, 2015
  3. Arup RakshitJan 23, 2015
  4. Stefan BellerJan 23, 2015
  5. Junio C HamanoJan 23, 2015
  6. Stefan BellerJan 23, 2015
  7. Junio C HamanoJan 23, 2015
  8. Stefan BellerJan 23, 2015
  9. Arup RakshitJan 24, 2015
  10. KevinJan 24, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.