Replies: 1 comment
-
|
Any but rebasing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
when you approve a PR you can choose multiple ways of merging the code. Each has their pros and cons.
Merge
it will create a new commit with the title "merge: ...", and a loop of the branch commits will be maintained
Squash
all PR commits will be transposed on the top of the main branch, similar to a cherry-pick of all commits. Also, PR's commits timestamp will be overridden to the actual time.
rebase
flatten all PR commits into one, and squash it to the main branch. You lose the granularity of each PR change in favor of a more clean main history line with on commit per PR.
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions