Files
developer-roadmap/roadmaps/git-github/content/git-worktree@4dxVN81rXWn6VZqK99yq0.md

658 B

Git Worktree

Git worktree allows multiple branches to be checked out simultaneously in separate directories, all linked to the same repository. Running git worktree add <path> <branch> creates a new working directory for a specific branch without needing to clone the repository again. This is useful when a developer needs to work on two branches at once, like testing a hotfix while a feature branch remains checked out elsewhere.

Visit the following resources to learn more: