← Back to context

Comment by matheusmoreira

1 day ago

I don't understand what you mean by "the ugliness of branches".

In my experience, branches are totally awesome. Worktrees make branches even more awesome because they let me check out multiple branches at once to separate directories.

The only way it could get better is if it somehow gains the ability to check out the same branch to multiple different directories at once.

> ability to check out the same branch to multiple different directories at once.

So you want shared object storage, but separate branch metadata. That's git clone with hardlinks, which is what Git does locally by default.

  • Git worktrees won't allow me to check out a branch twice though. I wonder if there's some technical limitation that prevents it.