s
March 6, 2024, 3:21 p.m. |

Simon Willison's Weblog simonwillison.net

How I use git worktrees


TIL about worktrees, a Git feature that lets you have multiple repository branches checked out to separate directories at the same time.


The default UI for them is a little unergonomic (classic Git) but Bill Mill here shares a neat utility script for managing them in a more convenient way.


One particularly neat trick: Bill's "worktree" Bash script checks for a node_modules folder and, if one exists, duplicates it to the new directory using copy-on-write, …

bill feature git multiple shares them til utility

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Consultant Senior Power BI & Azure - CDI - H/F

@ Talan | Lyon, France