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

re-ignoring a force added file

From
RARaza Ali <rali@ebi.ac.uk>
Date
Aug 13, 2013, 18:31 UTC
Message-ID
<520A7B79.4080306@ebi.ac.uk>
Dear Git Mailing List,

I have force added a file we usually like to ignore (but keep in the repository). That was a change a while ago, and cannot be undone without serious pain. I would like to re-ignore the file though, as we dont want to track changes to it. Some of the options I came across are not useful for me. For example

git rm --cached FILE // removes the file from the remote repository if I push, not desirable git update-index --assume-unchanged //Will ignore changes to the file locally, but someone else clones and the file is tracked for them.

What we would like is to go back to the old state of affairs: the file was in the working directory when someone cloned from the remote repository, but changes to the file werent tracked or committed.

Any help would be appreciated.
regards
Raza
Next: Thomas Rast
Message 1 of 2 in “re-ignoring a force added file”
  1. Raza AliAug 13, 2013
  2. Thomas RastAug 14, 2013

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.