{"id":33916550,"url":"https://github.com/ogirginc/workbush","last_synced_at":"2025-12-12T07:23:28.767Z","repository":{"id":321960787,"uuid":"1086636867","full_name":"ogirginc/workbush","owner":"ogirginc","description":"Manage git worktrees with automatic file copying and setup commands","archived":false,"fork":false,"pushed_at":"2025-10-30T17:32:32.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T17:50:25.407Z","etag":null,"topics":["git","worktree"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/workbush","language":"Ruby","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/ogirginc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-30T17:32:18.000Z","updated_at":"2025-11-03T09:09:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ogirginc/workbush","commit_stats":null,"previous_names":["ogirginc/workbush"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ogirginc/workbush","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogirginc%2Fworkbush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogirginc%2Fworkbush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogirginc%2Fworkbush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogirginc%2Fworkbush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ogirginc","download_url":"https://codeload.github.com/ogirginc/workbush/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogirginc%2Fworkbush/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27603340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-08T02:00:07.111Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","worktree"],"created_at":"2025-12-12T07:23:25.416Z","updated_at":"2025-12-12T07:23:28.762Z","avatar_url":"https://github.com/ogirginc.png","language":"Ruby","readme":"# Workbush 🌳\n\nManage git worktrees with automatic file copying and setup commands. Workbush simplifies the process of creating git worktrees by automatically copying dependencies, configuration files, and running setup commands based on a simple YAML configuration.\n\n## Why Workbush?\n\nGit worktrees are powerful for working on multiple branches simultaneously, but setting them up can be tedious:\n- Manually copying `.env` files\n- Re-running `bundle install` or `npm install`\n- Copying `node_modules` or `vendor/bundle` to avoid reinstalling\n- Running database migrations\n- Copying other configuration files\n\nWorkbush automates all of this with a single command.\n\n## Features\n\n- **Automatic file copying**: Copy dependencies, configs, and build artifacts\n- **Post-creation commands**: Run setup commands automatically\n- **Glob pattern support**: Copy files matching patterns\n- **YAML configuration**: Simple, version-controlled setup\n- **ERB templates**: Dynamic configuration with environment variables\n- **Thor-based CLI**: Beautiful, colorized output\n\n## Installation\n\nInstall the gem:\n\n```bash\ngem install workbush\n```\n\nOr add to your Gemfile:\n\n```ruby\ngem 'workbush'\n```\n\n## Quick Start\n\n1. **Initialize configuration** in your project:\n\n```bash\nworkbush init\n```\n\n2. **Edit `.workbush.yml`** to match your needs:\n\n```yaml\ncopy_files:\n  - .env\n  - .env.local\n  - mise.local.toml\n\ncopy_directories:\n  - node_modules\n  - vendor/bundle\n\npost_create_commands:\n  - mise trust\n  - bundle install\n  - rails db:migrate\n```\n\n3. **Create a worktree** with automatic setup:\n\n```bash\nworkbush add ../feature-123 feature-branch\n```\n\nThat's it! Your new worktree is ready with all files copied and commands executed.\n\n## Usage\n\n### Create a worktree\n\n```bash\n# Create worktree for existing branch\nworkbush add ../feature-123 feature-branch\n\n# Create worktree with new branch\nworkbush add ../bug-fix new-branch-name\n\n# Create without copying files\nworkbush add --no-copy ../quick-test main\n\n# Create without running commands\nworkbush add --no-run-commands ../feature-456 feature-branch\n\n# Create with verbose output\nworkbush add --verbose ../feature-789 feature-branch\n\n# Force creation (overwrite existing path)\nworkbush add --force ../existing-path feature-branch\n```\n\n### List worktrees\n\n```bash\nworkbush list\n```\n\n### Remove a worktree\n\n```bash\n# With confirmation prompt\nworkbush remove ../feature-123\n\n# Force removal without confirmation\nworkbush remove --force ../feature-123\n```\n\n### Initialize configuration\n\n```bash\n# Create .workbush.yml in current directory\nworkbush init\n\n# Overwrite existing config\nworkbush init --force\n```\n\n### Show version\n\n```bash\nworkbush version\n```\n\n## Configuration\n\nCreate a `.workbush.yml` file in your project root:\n\n```yaml\n# Files to copy (exact paths)\ncopy_files:\n  - .env\n  - .env.local\n  - .env.development\n  - config/database.yml\n  - config/credentials.yml.enc\n\n# Glob patterns for multiple files\ncopy_patterns:\n  - \".env.*\"\n  - \"*.lock\"\n  - \"config/*.local\"\n\n# Directories to copy\ncopy_directories:\n  - node_modules\n  - vendor/bundle\n  - .bundle\n  - tmp/cache\n\n# Commands to run after creation\npost_create_commands:\n  - bundle install\n  - yarn install\n  - rails db:migrate\n```\n\n### ERB Templates\n\nUse ERB for dynamic configuration:\n\n```yaml\ncopy_files:\n  - \u003c%= ENV.fetch(\"CONFIG_FILE\", \".env\") %\u003e\n\npost_create_commands:\n  - \u003c%= ENV.fetch(\"SETUP_COMMAND\", \"bundle install\") %\u003e\n```\n\n## Use Cases\n\n### Rails Development\n\n```yaml\ncopy_files:\n  - .env\n  - mise.local.toml\n  - config/database.yml\n  - config/master.key\n\ncopy_directories:\n  - vendor/bundle\n  - node_modules\n\npost_create_commands:\n  - mise trust\n  - bundle install\n  - yarn install\n  - rails db:migrate\n```\n\n### Node.js Projects\n\n```yaml\ncopy_files:\n  - .env\n  - .env.local\n\ncopy_directories:\n  - node_modules\n\npost_create_commands:\n  - npm install\n  - npm run build\n```\n\n### Ruby Gems\n\n```yaml\ncopy_directories:\n  - vendor/bundle\n\npost_create_commands:\n  - bundle install\n```\n\n## Global Options\n\nAll commands support these options:\n\n- `--verbose` or `-v`: Enable detailed output\n- `--config PATH` or `-c PATH`: Use custom config file\n\n## Tips\n\n1. **Commit your `.workbush.yml`**: Share configuration with your team\n2. **Copy `node_modules`**: Much faster than re-running `npm install`\n3. **Use glob patterns**: Copy all `.env.*` files at once\n4. **Skip commands when needed**: Use `--no-run-commands` for quick testing\n5. **Check the list**: Use `workbush list` to see all your worktrees\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/workbush.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogirginc%2Fworkbush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogirginc%2Fworkbush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogirginc%2Fworkbush/lists"}