Closed williarin closed 11 months ago
I personally prefer using rebase to update working branch with staging or master, and using merge to retrieve work from someone else, or when approving and merging pull request to common branches like staging.
It's more clear for me, and it's also easier to revert because you just need the merge commit using git revert -m commithash
We also do this where I work (+50 developers)
Thanks, it seems indeed to be the best option.
What's the best option for PRs, rebase or merge? I've only worked with rebase so far as mostly the sole contributor but it seems that it creates co-authored commits when a contributor makes a PR, which is odd.
Any opinion on what is the cleaner for open-source projects?