Skip to content

Instantly share code, notes, and snippets.

View jamesjfoong's full-sized avatar
🏠
Working from home

James Jeremy Foong jamesjfoong

🏠
Working from home
View GitHub Profile
@ChristopherA
ChristopherA / git_worktrees.md
Last active November 8, 2025 07:38
Git Worktree Best Practices and Tools

Git Worktree Best Practices and Tools

Last Updated: 2024-02-06

Overview

Git worktrees allow you to check out multiple branches simultaneously in separate directories, while sharing a single .git metadata store.

THere are some best practices, useful Git aliases, and shell functions for efficiently managing Git worktrees. It covers:

  • Setting up Git aliases for worktree operations.
  • Using shell functions for enhanced worktree management.