113
you are viewing a single comment's thread
view the rest of the comments
[-] soc@programming.dev 5 points 3 days ago* (last edited 3 days ago)

git worktree is just so much easier to work with if you want to work on multiple versions or branches of some code.

It allows having multiple IDE instances open, all fully functional and indexed, and handing over commits from one worktree to another without having to fetch constantly in between.

Trying to emulate this with multiple clones feels like trying to do OOP in C -- sure one can do it, but it's pointless hassle compared to a fleshed-out solution that works right out of the box.

Not to mention it's so much faster and more efficient than git clone.

this post was submitted on 31 Jul 2025
113 points (100.0% liked)

Programming

21961 readers
692 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS