• soc@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    19 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.