Hands-on task
Add a working tree for a branch
In /root/repo there is a main branch (the current one) and a release branch, which contains a file rel.txt that's absent in main.
Without switching the current branch, add a separate working tree for the release branch in the directory /root/wt. After that, /root/wt should contain the contents of the release branch (including rel.txt), and the directory itself should be registered as a working tree of this repository with the release branch checked out.
- git worktree
- working trees
- branches
- parallel work