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

Re: git rm --cached and pull semantics

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Jan 18, 2010, 00:06 UTC
Message-ID
<86my0c5l9s.fsf@blue.stonehenge.com>
In-Reply-To
<4B53941A.6020500@phuk.ath.cx>
The real WTF here is that you are using a workdir as your live dir.

If you treat git as a *source* manager like it is, you'd also have an installer that would copy the resulting files into their live locations, and could be edited to either leave that newly untracked file alone, or deliberately remove it.

Use git as intended, and you get no problems.
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Previous: list@phuk.ath.cxNext: list@phuk.ath.cx
Message 4 of 5 in “git rm --cached and pull semantics”
  1. list@phuk.ath.cxJan 16, 2010
  2. Matthieu MoyJan 17, 2010
  3. list@phuk.ath.cxJan 17, 2010
  4. Randal L. SchwartzJan 18, 2010
  5. list@phuk.ath.cxJan 18, 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.