github - How to ignore a file in git tree without removing it -
i've git repository of android package , want ignore binand gen folders. added them .gitignore after folder existed.
now if use git rm, files in bin , res deleted. there way ignore , remove these folders version control without deleting files hard drive?
you can still use git rm:
git rm -r --cached bin git rm -r --cached gen the --cached make sure still on disk, no longer in git index: ignored (add , commit change).
-r allows recursive removal when leading directory name given.
Comments
Post a Comment