Post #4280181
2026-07-24 06:33 UTC
Great intro to git worktrees from @nzakas:
https://humanwhocodes.com/blog/2026/07/introduction-git-worktrees/
The GitHub Copilot app uses worktrees by default, and it reallly helps to understand them, since a worktree will *not* have files from the main checkout like a gitignored .env.
Replies (1)
-
@PuercoPop@mastodon.social 2026-07-24 06:47
@pamelafox@fosstodon.org @nzakas@fosstodon.org imho a simpler directory layout for worktress is to clone the repository in a directory that uses the default branch name as the directory name in e.j. ~/myproject/main Then ~/myproject/feature-name for worktrees.