-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Resolving PR merge conflicts for "common config rush pnpm‐lock.yaml"
Jeremy Meng edited this page Mar 13, 2025
·
5 revisions
Here's the recommended process to resolve merge conflicts of common/config/rush/pnpm-lock.yaml
in your pull request (assuming your upstream remote is named "upstream"):
- Get the latest changes from the upstream main branch:
git fetch upstream main
- Merge the latest changes from main to local pull request branch:
git merge --no-edit upstream/main
- Use your favorite IDE, editor, or Git Client to resolve conflicts for files other than
common/config/rush/pnpm-lock.yaml
- Check out the main branch version of pnpm-lock.yaml:
git checkout upstream/main -- common/config/rush/pnpm-lock.yaml
- Refresh dependencies:
rush update
- Stage the updates:
git add common/config/rush/pnpm-lock.yaml
- Commit the merge
- Push the commit to your pull request branch, assuming "origin" is the git remote name of your fork,
git push origin
Step 4) to 6) can be combined and enhanced to run under any directory under the repo if you are using a *NIX environment:
git checkout upstream/main `git rev-parse --show-toplevel`/common/config/rush/pnpm-lock.yaml && rush update && git add `git rev-parse --show-toplevel`/common/config/rush/pnpm-lock.yaml