← Learn
Dangerous
git rebase origin/main -X ours && git push --force origin HEAD:main

cross-platform · bash · Intermediate

Offered as a one-line end to a merge conflict. During a rebase the ours side is the branch being rebased onto, not the commits being…

The full explanation and danger signals for this pack are part of Pro.

Think you can spot these under time pressure?

Start Training

More Git / Development