* git-unadd anyone?
@ 2006-02-01 15:31 Radoslaw Szkodzinski
2006-02-01 15:38 ` Uwe Zeisberger
0 siblings, 1 reply; 3+ messages in thread
From: Radoslaw Szkodzinski @ 2006-02-01 15:31 UTC (permalink / raw)
To: Git Mailing List
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
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.
--
GPG Key id: 0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0 9105 9543 0453 D1F1 0BA2
AstralStorm
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-unadd anyone?
2006-02-01 15:31 git-unadd anyone? Radoslaw Szkodzinski
@ 2006-02-01 15:38 ` Uwe Zeisberger
2006-02-01 16:11 ` Radoslaw Szkodzinski
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Zeisberger @ 2006-02-01 15:38 UTC (permalink / raw)
To: Git Mailing List
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
--
Uwe Zeisberger
http://www.google.com/search?q=5+choose+3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-unadd anyone?
2006-02-01 15:38 ` Uwe Zeisberger
@ 2006-02-01 16:11 ` Radoslaw Szkodzinski
0 siblings, 0 replies; 3+ messages in thread
From: Radoslaw Szkodzinski @ 2006-02-01 16:11 UTC (permalink / raw)
To: Git Mailing List
[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]
Uwe Zeisberger wrote:
> 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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-01 16:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-01 15:31 git-unadd anyone? Radoslaw Szkodzinski
2006-02-01 15:38 ` Uwe Zeisberger
2006-02-01 16:11 ` Radoslaw Szkodzinski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.