I have a repo that contains my minified css/js files. Some of them are gzipped. When i go between staging and production doing push and pulls it tries to auto merge and fails on the gz ones citing it cannot auto merge binary files.
Is there a way to tell git to never try to merge a certain directory but rather only push that directories changes when a push request is made?
Any other ways you guys go about this?
Thanks!!
UPDATE:
I tried putting the following in .gitattributes
*.gz merge=keepTheir
And still getting this whenever I push: (mind you, someone else pushed before me and updated files into that repo)
Auto-merging public/assets/upload.css.gz
CONFLICT (content): Merge conflict in public/assets/upload.css.gz
What am I doing wrong?