+
Skip to content

ingshtrom/git-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-manager

Manage git repositories using Git worktrees.

Overview

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.

Features

  • 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

Installation

go install github.com/ingshtrom/git-manager@latest

Usage

# 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]

Development

Prerequisites

  • Go (version 1.24 or later)
  • Task (optional, for running tasks)

Using Taskfile

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

License

See the LICENSE file for details.

About

Manage git repositories using Git worktrees.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载