use git gui, select all the files (use shift-click) then press ctrl
and click on the one you don't want.  Then press Ctrl+T to stage them
to the commit.

On Tue, Apr 7, 2009 at 1:39 PM, Alex K <alex.ksi...@gmail.com> wrote:
>
>> git rm --cached <file>, then add it to .gitignore.
>
> Sorry I meant that I still want the file in the next revision, but I
> just don't want anymore updates committed to it. git rm --cached
> <file> will actually remove the file in the next commit. Again I'd
> like to keep on using git add -u and not have to do git add on every
> file but on the one I don't want committed.
>
> Thank you,
>
> Alex
>
> On Apr 6, 6:34 pm, David Aguilar <dav...@gmail.com> wrote:
>> On  0, Alex K <alex.ksi...@gmail.com> wrote:
>>
>>
>>
>> > Hello,
>>
>> > How can I untrack but not delete a file from a repository? I know I
>> > can use add <file> on all the files but not on the ones I want
>> > untracked. But I would prefer to keep on using git add -u. Should I
>> > add the file to .gitignore?
>>
>> > Thank you,
>>
>> > Alex
>>
>> git rm --cached <file>, then add it to .gitignore.
>>
>> --
>>
>>         David
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to