Manage git repositories using Git worktrees.
Git worktrees are awesome, but to use them effectively, some prior organization helps. git-manager
is a command-line tool that helps you organize and manage multiple git repositories using git worktrees. It puts them in a special directory to ensure that it does not conflict with current git repositories that might be managed in different ways.
- Create and manage git repositories
- Create and manage git worktrees for a given repository
- Navigate between different worktrees and repositories
- Organize repositories efficiently
- Streamline git workflow
go install github.com/ingshtrom/git-manager@latest
# Initialize a new git-manager workspace
git-manager init [repository-url]
# List all worktrees
git-manager list
# Create a new worktree
git-manager create [branch-name]
# Switch to a worktree
git-manager switch [worktree-name]
# Remove a worktree
git-manager remove [worktree-name]
This project includes a Taskfile.yml for common development tasks. If you have Task installed, you can use the following commands:
# List all available tasks
task
# Build the application
task build
# Run the application
task run
# Run tests
task test
# Run tests with coverage
task test:cover
# Format code
task fmt
# Lint code
task lint
# Install git-manager globally
task install
# Clean build artifacts
task clean
# Run in development mode with hot reload (requires Air)
task dev
See the LICENSE file for details.