|
|
|
|
|
by 11235813213455
2616 days ago
|
|
It's more that feature branches should be rebased instead of merging the main branch into it (like most developers unfortunately do) [pull]
rebase = true
in your ~/.gitconfig, and just pull the branch your forked fromThis way, the git history is linear, clean and readable |
|
My issue with rebase is that as soon as you want a single other person to commit code to that branch, you can no longer rebase. Everything must be merged from that point on, otherwise the histories diverge and you wind up in rebase/merge hell.
The only alternative I've found is to over-communicate every push to your co-worker because it requires him to stash his changes, delete his local branch, pull down the "new" remote branch and re-apply his changes.