Skip to content

Instantly share code, notes, and snippets.

@gringoh
Last active July 22, 2024 14:07
Show Gist options
  • Save gringoh/b11b074d0869301a865e55257194cea2 to your computer and use it in GitHub Desktop.
Save gringoh/b11b074d0869301a865e55257194cea2 to your computer and use it in GitHub Desktop.
[Git: Rebase] #git

Git: Rebase

From your feature branch:

git fetch
git rebase origin/master

If any conflict shall arise, resolve them one by one. Once all conflicts are dealt with:

git rebase --continue
git push --force-with-lease (git push --force)

Git: merge strategy option

git merge --strategy-option ours main
git merge --strategy-option theirs main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment