I'm using git for a Laravel project that uses Webpack to minify javascript files and SCSS to generate CSS files.
I have a master
branch and a ws
branch.
When I'm in the ws
branch and want to run git rebase master
, I'm currently seeing 54 steps of conflicts.
Almost all of them are ones relating to the public/js
or public/css
directories or composer.lock
or public/mix-manifest.json
.
During my rebase, I don't want to spend any time manually resolving each of those conflicts because I plan to run npm run production
afterwards anyway (which will regenerate public/mix-manifest.json
and all the files in public/js
) and take care of the SCSS and composer too.
I've read about git rerere but get the sense that it is not helpful here.
I also don't want to manually run git checkout --ours dozens of times.
How can I make my rebase process faster and easier?
P.S. I wonder if Choose Git merge strategy for specific files ("ours", "mine", "theirs") is related.