github - Git exclude file does not seem to be excluding changed files -


i'm having problem excluding binary files. i'm trying git ignore them through 'exclude' file because never work them. can't seem work. here background. i'm working on windows, of team works on mac or linux. there couple of jpg files same name, different case. ideally should change names of files, i'm working on large team , isn't easy might think.

since never work these files, i'm trying locally exclude them git's view. first added file names exclude file using both case versions (full paths copied directly messages got git warning me of changed files need committed before checkout branch). since didn't work (i still same error messages , can't change branches) tried adding *.jpg exclude file. still no luck.

i read need remove files being tracked. tried

git rm --cached filename 

once again using both case versions of file. shows files deleted in uncommitted change. if commit these deletes, , sync, won't delete files everyone?

i tried

git update-index --assume-unchanged filename 

once again, both filenames used. doesn't seem have effect.

i know research duplicate filename issue on windows vexing problem , many of usual git ways of dealing don't work. think telling git exclude files (or whole file type in case) work. tried excluding entire directory (dir1/dir2/images/*) didn't work either. can't figure out why exclude file doesn't seem working.

don't push deletes!

push new exclude file!

so nobody has worry deletes , people won't pushing more .jpgs = )!

and figure out how rid of jpgs peoples machines if matters!


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -