Comment by nicois
4 years ago
This is also my pattern. To further assist with this, I wrote a short(ish) rebase script intended to be run when you want to squash your series of commits, also bringing your local branch up-to-date with the upstream. It relies on your initial commit in your feature branch having a commit message which corresponds to the branch name, but that's it. This does a great job of minimising unnecessary merge conflicts, even after working offline for an extended period.
https://gist.github.com/nicois/e7f90dce7031993afd4677dfb7e84...
No comments yet
Contribute on Hacker News ↗