worktrees allow you to check out multiple branches at the same time.
it is nice when you want to refer to content not available on the
current branch you are working on
each worktree is a different branch and can be viewed independently!
git commands can only be ran within the worktrees or in the .git directory.
now you don’t change branches with checkout, just cd into the worktree
mkdir project
cd project
git init --bare project.git
cd project.git
git worktree add ../main (creates a worktree from branch main or creates branch if doesn't exist)
cd ../main