gitignore - Recursive git update-index --assume-unchanged -


i'm trying run following:

git update-index --assume-unchanged myfoldertoignore 

where myfoldertoignore folder. fails saying "unable mark" it.

so tried:

git update-index --assume-unchanged myfoldertoignore/ 

which git responds ignoring path myfoldertoignore/ doesn't (it still sees changes , tries check them in).

in end had go in , manually mark each individual file unchanged. missing here?

update-index internal plumbing command , not comfortable real front-end commands. have handle recursion bit yourself:

git ls-files -z myfoldertoignore/ | xargs -0 git update-index --assume-unchanged 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -