Skip to content

Instantly share code, notes, and snippets.

@sephraim
Last active June 20, 2025 21:27
Show Gist options
  • Save sephraim/362136dff28c623e4460a26fbbc1ce8b to your computer and use it in GitHub Desktop.
Save sephraim/362136dff28c623e4460a26fbbc1ce8b to your computer and use it in GitHub Desktop.
[Resolve merge conflicts in dist/ directory] Ignore incoming merge conflicts for dist/ files and just use "ours"
# Pull in changes
# NOTE: This is what will cause the merge conflicts
git pull --rebase origin develop
# Force resolve dist/ conflicts by using "ours"
git checkout --ours dist
git add dist
git rebase --continue
# Regenerate dist/ files
bin/generate-dist-files.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment