Quick steps to update your application with the latest changes from origin/main
and handle any conflicts:
-
Fetch the latest changes without switching branches:
git fetch origin main
-
Merge the fetched updates into your current branch:
git merge origin/main
-
Resolve any merge conflicts that arise during the merge, then commit the resolved files:
git add . git commit -m "chore: resolved merge conflicts"
By following these steps, you can efficiently update your application to include the latest changes from the main branch while preserving your custom modifications.