I've created my own dev
branch from a pretty active repository. This repository (Clappr) also contains a compiled and minified file, which is updated with the source code.
Whenever I want to rebase my dev
branch with the master
, this file is conflicting, because it cannot be automatically merged—of course, because it's a minified JS file:
$ git checkout dev
$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: dummy commit
Using index info to reconstruct a base tree...
M dist/clappr.js
M src/playbacks/hls/hls.js
Falling back to patching base and 3-way merge...
Auto-merging src/playbacks/hls/hls.js
Auto-merging dist/clappr.js
CONFLICT (content): Merge conflict in dist/clappr.js
I can resolve this conflict using --ours
, but I have to do this for every single commit on master
that I haven't rebased yet.
I know I can skip a patch entirely, but can I somehow automatically tell Git to ignore that clappr.js
file and just always use whatever is in my dev
branch?