DEV Community

Discussion on: Git tips for trunk-based development

Collapse
 
dricomdragon profile image
Jovian Hersemeule

Thanks for this article ! A comment about your PRO tip for interactive git rebase. Instead of counting the number of commits since you diverged from master (like git rebase -i HEAD~7), you can directly give the branch ref :

git rebase -i master

Then it works the same. No need to use git log master.. 😉

Collapse
 
alediaferia profile image
Alessandro Diaferia

That's a great tip, thank you!