4 ms·
How I Use Stacked Git at $Work
- arxanas 5y agoI didn't see a way to post a comment on the article, so I'll post here. Regarding performance concerns, my own project https://github.com/arxanas/git-branchless https://github.com/arxanas/git-branchless is designed to work very fast at monorepo scale. It primarily supports a patch-stack workflow, but largely using your existing Git workflows. (There is no difference between a patch and a commit, for example; patch identity is implicitly tracked using Git's `post-rewrite` hook.) To modify the order of patches, you use `git rebase -i`. To modify a patch's content, you can check it out directly and amend it (which will update the descendant patches). To rebase onto another ref, you use `git move`; if it doesn't apply cleanly, then it aborts the operation without ever touching your working copy, unless you pass `--merge` to force conflict resolution.
- lthms 5y agoHi arxanas! I’ve run into `git branchless` too, and clearly it caught my attention. I tried to use it, but I think my mental model was not the correct one, because basically, all I wanted was a faster Stacked Git at the time ahah. I should give it another try at some point.
- tomasreimers 5y agoHi, the company I'm working on tries to solve exactly this problem: https://graphite.dev https://graphite.dev (you can read our writing on stacked branches here: https://graphite.dev/blog/post/DThX8ffP1gmxWJChEv0y https://graphite.dev/blog/post/DThX8ffP1gmxWJChEv0y) And we manage the local developer story through our CLI: https://docs.graphite.dev/guides/graphite-cli https://docs.graphite.dev/guides/graphite-cli Happy to talk to anyone about this workflow!