Why Nostr? What is Njump?
2024-07-18 14:06:03

mplorentz on Nostr: TIL about git worktree. Instead of doing git stash && git checkout, (make changes, ...

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.
Author Public Key
npub16zsllwrkrwt5emz2805vhjewj6nsjrw0ge0latyrn2jv5gxf5k0q5l92l7