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

Making Git untrack few folders

From
PKParag Kalra <paragkalra@gmail.com>
Date
Sep 12, 2010, 10:22 UTC
Message-ID
<AANLkTiktMe190OVPrTXMtmfaLRLXeJBZ4vSZewJecQWe@mail.gmail.com>
In-Reply-To
<AANLkTi=vjueuP66BAMsRDww=J3Nq3Q4BooKF+85khcBn@mail.gmail.com>
Hi All,
I have couple of interconnected questions:
1. Is there a way I can make Git not track a particular folder in my
working code base directory. For example, I have a tmp folder in my
local code base and I don't want Git to track whats going on inside
that directory.
2. Accidently I have added this folder, committed and pushed it to
origin master. Is there a way I can remove this tmp folder from git
revision history and at the same time keeping it intact in my local
code base directory.

Cheers, Parag

Next: Ramkumar Ramachandra
Message 1 of 3 in “Making Git untrack few folders”
  1. Parag KalraSep 12, 2010
  2. Ramkumar RamachandraSep 12, 2010
  3. Parag KalraSep 12, 2010

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.