git-advanced
Git Advanced
Worktrees
# Create a worktree for a feature branch (avoids stashing)
git worktree add ../feature-auth feature/auth
# Create a worktree with a new branch
git worktree add ../hotfix-123 -b hotfix/123 origin/main
# List all worktrees
git worktree list
# Remove a worktree after merging
git worktree remove ../feature-auth
Worktrees let you work on multiple branches simultaneously without stashing or committing WIP. Each worktree has its own working directory but shares the same .git repository.
More from rohitg00/awesome-claude-code-toolkit
devops-automation
CI/CD pipeline design with GitHub Actions, Docker, Kubernetes, Helm, and GitOps patterns
116react-patterns
React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition
88database-optimization
Query optimization, indexing strategies, and database performance tuning for PostgreSQL and MySQL
85api-design-patterns
REST API design with resource naming, pagination, versioning, and OpenAPI spec generation
81redis-patterns
Redis patterns including caching strategies, pub/sub, streams for event processing, Lua scripts, and data structures
79frontend-excellence
Modern frontend patterns for React Server Components, performance optimization, and Core Web Vitals
79