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

Re: How to ignore a modified file?

From
QHQuim K Holland <qkholland@gmail.com>
Date
Mar 5, 2009, 08:53 UTC
Message-ID
<20090305145308.6117@qkholland.gmail.com>
You can run "git checkout directory".
Show 9 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.
> -- 
> View this message in context: http://n2.nabble.com/How-to-ignore-a-modified-file--tp2428157p2428157.html
> Sent from the git mailing list archive at Nabble.com.
Next: Sverre Rabbelier
Message 1 of 4 in “Re: How to ignore a modified file?”
  1. Quim K HollandMar 5, 2009
  2. Sverre RabbelierMar 5, 2009
  3. Junio C HamanoMar 5, 2009
  4. Sverre RabbelierMar 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.