mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-29 18:37:18 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
8 lines
658 B
Markdown
8 lines
658 B
Markdown
# 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:
|
|
|
|
- [@article@Git Worktree](https://www.gitkraken.com/learn/git/git-worktree)
|
|
- [@video@Manage Branches easily using Git Worktree](https://www.youtube.com/watch?v=cRunWRC8ye0) |