Earlier quoted context omitted.
Then you don't actually need merge? Am I missing something? If you always rebase the branch, the commits can be applied directly.
if you do this: (starting on main) git checkout -b feature do work git commit -a git checkout main git pull git checkout feature git rebase main publish code review, get approval git checkout main git merge feature You still use merge at the end, even though it's not actually doing anything that'll result in a conflict.
The last command is:
cp .git/refs/heads/feature .git/refs/heads/main
No merge needed.