Git Worktree
Thu, Nov 10, 2022
Sometimes you would like to jump between two branches in parallel during a bugfix. The git worktree command makes this possible. It allows you to check out several branches at a time and therefore also offers the possibility to run several apps simultaneously. This is especially useful when you want to compare the master/main state of an app with a bugfix branch.
git worktree list
git worktree add ../example-master
git remove example-master