this post was submitted on 31 Jul 2025
23 points (96.0% liked)

General Programming Discussion

8821 readers
1 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] atzanteol@sh.itjust.works 8 points 6 days ago (3 children)

As somebody who rarely has a "pristine" working copy I love worktrees. I usually have a "project-master" worktree that's a pristine checkout of the master branch so I can test builds and things without interference from uncommitted and temporary files.

[โ€“] dessalines@lemmy.ml 5 points 6 days ago

Same. The main thing I've been liking about it for the slower compiling languages that I mainly work in (rust, android jetpack compose), is that it leaves the build or target directories in place. So instead of git checkout && clean_build_dir, and having to wait to recompile, I can just cd to that dir.

load more comments (2 replies)