A merge conflict occurred during a rebase, and Git is now asking me to resolve the patch. In cases where both changes are acceptable, how do I tell Git to accept both changes without having to modify the file myself?
E.g. when both changes are acceptable:
<<<<<<< HEAD
const foo = require('./foo');
=======
const bar = require('./bar');
>>>>>>> some commit message
git: can I accept both changes in a merge conflict without editing files? suggests a way to do this for a very specific case without using Git, but I'm looking to do this with native Git commands. A comment mentions doing a union merge, but I couldn't find docs around how to do this in this scenario.