# git-unadd anyone?

3 messages from 2006-02-01 to 2006-02-01. Participants: Radoslaw Szkodzinski, Uwe Zeisberger.
Thread: https://gitlist.dev/t/3210

## Radoslaw Szkodzinski, 2006-02-01 15:31

Subject: git-unadd anyone?
Message-ID: <43E0D469.1030404@gorzow.mm.pl>
URL: https://gitlist.dev/e/43E0D469.1030404%40gorzow.mm.pl

```
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


```

## Uwe Zeisberger, 2006-02-01 15:38

Subject: Re: git-unadd anyone?
Message-ID: <20060201153823.GB16461@informatik.uni-freiburg.de>
URL: https://gitlist.dev/e/20060201153823.GB16461%40informatik.uni-freiburg.de
In-Reply-To: <43E0D469.1030404@gorzow.mm.pl>

```
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

```

## Radoslaw Szkodzinski, 2006-02-01 16:11

Subject: Re: git-unadd anyone?
Message-ID: <43E0DD94.6080300@gorzow.mm.pl>
URL: https://gitlist.dev/e/43E0DD94.6080300%40gorzow.mm.pl
In-Reply-To: <20060201153823.GB16461@informatik.uni-freiburg.de>

```
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


```
