I need to exclude the dist/ folder from merging errors, I don't care if it is theirs, ours or other strategy but I need to keep it in the revision control since this is the way to deploy to Heroku. .gitattributes script seems to be the way to go. But I can't seem to make this work.
I read this canonical answer and this similiar answer but can't find out what I'm doing wrong.
My .gitattributes config:
* text=auto
dist/ merge=keepMine
The relevant part of my  .git/config :
[merge "keepMine"]
    name = always keep mine dist during merge
    driver = keepMine.sh %O %A %B
and keepMine.sh (in my project root folder, no the folder isn't in the path, but copying to a folder in the path didn't help and isn't a good solution since the script should be part of revision control so all developers would get it):
# copied as is from the SO answer
# I want to keep MY version when there is a conflict
# Nothing to do: %A (the second parameter) already contains my version
# Just indicate the merge has been successfully "resolved" with the exit status
exit 0
EDIT: Also tried git config merge.keepMine.driver true as suggested in one of the SO answers above. Didn't work.
But I'm still getting merge errors (If I create them) for example in dist/styles/sdkasl.main.css for example.
What am I doing wrong? Thanks for the help.
 
     
    