logo

NJP

Git worktrees: parallel branches, no stash needed

ServiceNow Dev Program · Jun 03, 2026 · video

Previous: https://www.youtube.com/watch?v=kJDqrOLVF2k&list=PL3rNcyAiDYK2Pd\_HgNb8E2tw4Mb0vw1f1&index=22 Next: https://www.youtube.com/watch?v=rrXgw4XgCKg&list=PL3rNcyAiDYK2Pd\_HgNb8E2tw4Mb0vw1f1&index=24 Full written series: https://devlink.sn/buildanywhere Worktrees let you have multiple working directories for the same repo, each on its own branch, at the same time. Here's the use case that makes this worth learning: running two Claude Code agents in parallel on two different branches, no stashing, no context switching.

View original source

https://www.youtube.com/watch?v=aXnbjYxCRAY