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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -