On 0, Alex K <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---