Closed Sync271 closed 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.
@hargup , alright, on it!
What does this PR do?
packages\apps\src\index.ts
andpackages\apps\package.json
for potentially dealing with merge conflictsHow 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 rootThat should take care of merge conflicts and should make a local commit.