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

Re: How to ignore a modified file?

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Mar 5, 2009, 08:50 UTC
Message-ID
<fabb9a1e0903050050r322f1c54q8fd704cecc126115@mail.gmail.com>
In-Reply-To
<1236242659559-2428157.post@n2.nabble.com>
Heya,
On Thu, Mar 5, 2009 at 09:44, dealmaker <vinkhc@gmail.com> wrote:
> [...] How do I ignore [a tracked] directory?
$ git rm -rf --cached dirname && git commit -m "Removed directory from git"

Git will tell you about changes to the contents of the directory until you stop tracking it. --cached will prevent the folder from actually being removed from your harddisk.

-- 
Cheers,

Sverre Rabbelier
Previous: dealmakerNext: Robin Rosenberg
Message 2 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.