alt.hn

8/23/2026 at 10:01:55 PM

How I Use Git Worktrees (2024)

https://matklad.github.io/2024/07/25/git-worktrees.html

by oogali

8/23/2026 at 10:59:53 PM

It would be useful to mention that

    $ git reset ~HEAD
doesn't specify a reset mode, so the default mode --mixed is used. I prefer to use

    $ git reset --soft ~HEAD
which leaves both the working tree and index unchanged.

by chmaynard

8/24/2026 at 5:09:19 PM

I'm one of the weirdos that still holds on to mercurial as I genuinely prefer it's methods and workflow to git most of the time.

How the author describes handling work trees is exactly how they work in hg, and I find it enormously convenient vs the way that git by default really wants you to branch with work trees.

by Remnant44

8/24/2026 at 3:40:15 AM

How I use them: My big expensive mechanical keyboard collection is mostly using QMK firmware. For whichever keyboards I'm currently using, I have a git worktree per-keyboard.

by evanjrowley

8/24/2026 at 5:35:29 AM

I was going to say it is funny that git without staging, stash and branches is really close to the philosophy of jujutsu.

Then I found the article links to jj homepage

by abc3354