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

Re: How to ignore a modified file?

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Mar 5, 2009, 20:45 UTC
Message-ID
<200903052145.08249.robin.rosenberg.lists@dewire.com>
In-Reply-To
<1236242659559-2428157.post@n2.nabble.com>
torsdag 05 mars 2009 09:44:19 skrev dealmaker <vinkhc@gmail.com>:
Show 7 quoted lines
> 
> Hi, 
>   I run "git status", and I saw the a modified file in a directory.  I want
> to ignore all files in that directory.  I put the directory name into
> .gitignore, but it still shows as modified file.  Why?  How do I ignore the
> directory?
> Thanks.
git update-index --assume-unchanged <files...>
-- robin
Previous: Sverre Rabbelier
Message 3 of 3 in “How to ignore a modified file?”
  1. dealmakerMar 5, 2009
  2. Sverre RabbelierMar 5, 2009
  3. Robin RosenbergMar 5, 2009

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.