Worktree for parallel branches
Check out a branch in a separate directory without switching
git worktree add ../hotfix-branch hotfix/urgent
More git commands
-
git rebase -i HEAD~5Interactively reorder, squash, or edit last 5 commits
-
git cherry-pick abc1234Apply a specific commit from another branch
-
git stash push -m "WIP: feature X"Save working changes with a descriptive stash message
-
git stash listShow all stashed changesets
-
git stash apply stash@{2}Apply a specific stash entry without dropping it