{"id":45938711,"url":"https://github.com/takashabe/wkit","last_synced_at":"2026-02-28T10:16:21.785Z","repository":{"id":301087546,"uuid":"1000605841","full_name":"takashabe/wkit","owner":"takashabe","description":"A CLI tool for convenient Git worktree management","archived":false,"fork":false,"pushed_at":"2025-07-22T03:44:32.000Z","size":29055,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-22T05:34:56.001Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takashabe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-12T03:44:32.000Z","updated_at":"2025-07-22T03:44:25.000Z","dependencies_parsed_at":"2025-07-22T05:35:14.429Z","dependency_job_id":null,"html_url":"https://github.com/takashabe/wkit","commit_stats":null,"previous_names":["takashabe/wkit"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/takashabe/wkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashabe%2Fwkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashabe%2Fwkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashabe%2Fwkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashabe%2Fwkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takashabe","download_url":"https://codeload.github.com/takashabe/wkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashabe%2Fwkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29930168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git"],"created_at":"2026-02-28T10:16:21.149Z","updated_at":"2026-02-28T10:16:21.763Z","avatar_url":"https://github.com/takashabe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wkit\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Go](https://img.shields.io/badge/go-1.21+-00ADD8.svg)](https://go.dev/)\n\nA CLI tool for convenient Git worktree management.\n\n## Features\n\n- **Worktree management** - Create, list, remove, and switch between Git worktrees\n- **Flexible configuration** - Local (`.wkit.yaml`) and global (`~/.config/wkit/config.yaml`) configuration with XDG support\n- **Batch operations** - Clean up multiple worktrees efficiently\n- **Sync with main branch** - Keep worktrees up-to-date with merge or rebase\n\n## Installation\n\n### From Source\n\n```bash\n# Clone and build\ngit clone https://github.com/takashabe/wkit.git\ncd wkit\ngo build -o wkit .\n\n# Install binary\nsudo cp wkit /usr/local/bin/\n```\n\n### Shell Integration (Optional)\n\nSee [examples/fish/](examples/fish/) for shell integration examples that you can customize and add to your configuration.\n\n### Requirements\n\n- Go (1.21+)\n- Git (2.25+)\n\n## Usage\n\n### Basic Commands\n\n```bash\n# List all worktrees\nwkit list\n\n# Add a new worktree\nwkit add feature-branch\nwkit add feature-branch custom/path\n\n# Remove a worktree\nwkit remove feature-branch\n\n# Switch to a worktree (outputs path)\ncd $(wkit switch main)\n\n# Show status of all worktrees\nwkit status\n\n# Clean up worktrees\nwkit clean\n\n# Sync worktree with main branch\nwkit sync                    # current worktree\nwkit sync feature-branch     # specific worktree\nwkit sync --rebase          # use rebase instead of merge\n\n```\n\n### Configuration\n\n```bash\n# Show current configuration\nwkit config show\n\n# Set configuration values\nwkit config set wkit_root .git/.wkit-worktrees\nwkit config set auto_cleanup true\nwkit config set main_branch main\n\n# Create local configuration file\nwkit config init\n```\n\n### Structured Output\n\n`wkit` supports JSON output for easy integration with scripts and tools:\n\n```bash\n# Get worktree list as JSON\nwkit list --format=json\n```\n\n### Shell Integration Examples\n\nSee [examples/fish/](examples/fish/) for shell integration examples including:\n\n- Fuzzy worktree switching with fzf\n- Custom aliases and functions\n- Prompt integration\n- JSON output parsing examples\n\n## Configuration\n\nConfiguration files:\n- Local: `.wkit.yaml` (project-specific)\n- Global: `~/.config/wkit/config.yaml` (or `$XDG_CONFIG_HOME/wkit/config.yaml`)\n\n### Options\n\n```yaml\n# Default path for new worktrees\nwkit_root: \".git/.wkit-worktrees\"\n\n# Automatically clean up deleted branches\nauto_cleanup: false\n\n# Default sync strategy (merge or rebase)\ndefault_sync_strategy: \"merge\"\n\n# Main branch name\nmain_branch: \"main\"\n\n# Copy files to new worktrees\ncopy_files:\n  enabled: false\n  files:\n    - \".envrc\"\n    - \".env.local\"\n    - \"compose.override.yaml\"\n```\n\n### Precedence\n\n1. Command-line arguments\n2. Local `.wkit.yaml`\n3. Global config\n4. Built-in defaults\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakashabe%2Fwkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakashabe%2Fwkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakashabe%2Fwkit/lists"}