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.



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 
For more options, visit this group at 

Reply via email to