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

Re: git-unadd anyone?

From
RSRadoslaw Szkodzinski <astralstorm@gorzow.mm.pl>
Date
Feb 1, 2006, 16:11 UTC
Message-ID
<43E0DD94.6080300@gorzow.mm.pl>
In-Reply-To
<20060201153823.GB16461@informatik.uni-freiburg.de>
Uwe Zeisberger wrote:
Show 16 quoted lines
> Hello Radoslaw,
> 
> Radoslaw Szkodzinski wrote:
>> Is there an easy way to just unmark files wrongly marked as added?
>>
>> I'm not thinking about something like git-reset --mixed,
>> which would discard the index as a whole.
>> I only want to unmark files I git-add(1)ed.
> How about
> 
> 	git update-index --force-remove <filename>
> 
> 
> Best regards
> Uwe
> 
Thank you, it's exactly what I was looking for.

If I was mad enough, I'd use git-update-index --add instead of git-add. I'll have to reacquaint with git low-level commands anyway.

It's weird that there's git-add, yet no git-remove. The only difference is the exclude file handling (not a problem with remove) and doing global changes when no parameters are given.

Actually, I don't like the second property that much. I'd prefer an explicit -a for --all. But it's probably for CVS users sake, right?

-- 
GPG Key id:  0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0  9105 9543 0453 D1F1 0BA2

AstralStorm
Previous: Uwe Zeisberger
Message 3 of 3 in “git-unadd anyone?”
  1. Radoslaw SzkodzinskiFeb 1, 2006
  2. Uwe ZeisbergerFeb 1, 2006
  3. Radoslaw SzkodzinskiFeb 1, 2006

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.