felvin-search / instant-apps

Your search box is now an app store! 🎉
https://felvin.com
Other
94 stars 47 forks source link

Add a script to deal with merge conflicts #376

Closed Sync271 closed 2 years ago

Sync271 commented 2 years ago

What does this PR do?

How to use?

Note: the following works if this PR is merged into master, or can merge any branch into any other branch if you change the branch name here: https://github.com/felvin-search/instant-apps/blob/4898720bb0a52a4addf38384248228ce14325a30/scripts/fix_merge_conflict.sh#L4

Step 1:

Find a PR with a merge conflict with file(s): yarn.lock / package.json / index.ts

Step 2:

run ./scripts/fix_merge_conflict.sh from the root

That should take care of merge conflicts and should make a local commit.

hargup commented 2 years ago

@Sync271 The aim of this is script is to help us resolve merge conflicts easily. Let's also add the other commands which are required to make this happen. You mentioned that we can use “ours” and “theirs” keywords on git that allow you to accept current or incoming changes.

Sync271 commented 2 years ago

@hargup , alright, on it!