Thread

npub16zsllwr
7/18

TIL about git worktree. Instead of doing git stash && git checkout, (make changes, review PR, etc.), then git checkout - && git stash pop you can run git worktree ../myproject mybranch and git will create a new directory with mybranch checked out. Kind of like if you had cloned the project again. When you are done you can git worktree remove ../myproject.

@undefined
7/18/2024, 2:06:03 PM
0
0
-