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

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -