{"id":25947167,"url":"https://github.com/tizee/mangit","last_synced_at":"2026-05-09T08:32:58.252Z","repository":{"id":280159925,"uuid":"941150240","full_name":"tizee/mangit","owner":"tizee","description":"a command-line tool that helps you manage, search, and navigate your local Git repositories using tags and metadata","archived":false,"fork":false,"pushed_at":"2025-03-01T16:17:56.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T17:25:20.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/tizee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-03-01T16:00:03.000Z","updated_at":"2025-03-01T16:17:59.000Z","dependencies_parsed_at":"2025-03-01T17:25:30.455Z","dependency_job_id":"fe13784b-74e0-4ac5-83b4-ad47ed73e2b8","html_url":"https://github.com/tizee/mangit","commit_stats":null,"previous_names":["tizee/mangit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmangit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmangit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmangit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmangit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tizee","download_url":"https://codeload.github.com/tizee/mangit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827142,"owners_count":20026601,"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","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":[],"created_at":"2025-03-04T10:18:35.109Z","updated_at":"2026-05-09T08:32:53.228Z","avatar_url":"https://github.com/tizee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mangit - Semantic Git Repository Manager\n\n`mangit` is a command-line tool that helps you manage, search, and navigate your local Git repositories using tags and metadata rather than relying solely on directory structure.\n\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n\n## Motivation\n\n- Inspired by the need to manage many repositories across different project domains\n- Built with Rust for reliability and performance\n\n## 🌟 Features\n\n- **Tag-based organization**: Categorize repositories with custom tags\n- **Semantic search**: Find repositories based on names, tags, or descriptions\n- **Smart navigation**: Quickly open and navigate to repositories\n- **Frecency-based sorting**: Results ordered by frequency and recency of use\n- **Zero changes to your existing workflow**: Works with your current directory structure\n\n## 🚀 Installation\n\n### Prerequisites\n\n- Rust and Cargo (for building from source)\n- Git\n- fzf (optional, for interactive features)\n\n### From Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/username/mangit.git\ncd mangit\n\n# Build and install\ncargo install --path .\n```\n\n## 📝 Quick Start\n\n```bash\n# Initialize mangit\nmangit init\n\n# Add your first repository\nmangit add ~/projects/some-repo --tags \"rust,cli,tool\"\n\n# Search for repositories by tag\nmangit search \"rust\"\n\n# Access a repository (records usage for frecency)\nmangit access ~/projects/some-repo\n```\n\n## 🛠️ Commands\n\n| Command | Description |\n|---------|-------------|\n| `mangit init` | Initialize mangit |\n| `mangit add \u003cpath\u003e --tags \u003ctags\u003e` | Add a repository |\n| `mangit delete \u003cpath\u003e` | Remove a repository from mangit |\n| `mangit update \u003cpath\u003e --tags \u003ctags\u003e` | Update repository tags |\n| `mangit search \u003ctag\u003e` | Search for repositories by tag |\n| `mangit access \u003cpath\u003e` | Record repository access (for frecency) |\n| `mangit reset [--path \u003cpath\u003e]` | Reset frequency data for one or all repos |\n\n## 🔌 Shell Integration\n\n### ZSH Integration\n\nmangit comes with a ZSH integration script that provides enhanced functionality:\n\n1. Save the [mangit.zsh](./mangit.zsh) script to a location like `~/.config/zsh/mangit.zsh`\n2. Add this to your `~/.zshrc`:\n   ```zsh\n   source ~/.config/zsh/mangit.zsh\n   ```\n\nThe integration provides these commands:\n\n| Command | Description |\n|---------|-------------|\n| `mgcd [query]` | Navigate to a repository with fuzzy search |\n| `mgadd [path]` | Add current/specified directory as repository |\n| `mgl` | List repositories |\n| `mgs \u003ctag\u003e` | Search repositories by tag |\n| `mgpull \u003ctag\u003e` | Pull all repositories with tag |\n| `mgstatus \u003ctag\u003e` | Check status of repositories with tag |\n| `mgdash` | Interactive dashboard |\n\n## 🔍 Use Cases\n\n### Managing Multiple Projects\n\n```bash\n# Add several projects with descriptive tags\nmangit add ~/work/backend --tags \"work,backend,rust\"\nmangit add ~/work/frontend --tags \"work,frontend,react\"\nmangit add ~/personal/blog --tags \"personal,web,hugo\"\n\n# Find all work projects\nmangit search \"work\"\n\n# Find all Rust projects\nmangit search \"rust\"\n```\n\n### Task-based Workflow\n\n```bash\n# Tag repositories by feature or task\nmangit update ~/work/backend --tags \"work,backend,rust,auth-feature\"\nmangit update ~/work/frontend --tags \"work,frontend,react,auth-feature\"\n\n# Find all repos related to the auth feature\nmangit search \"auth-feature\"\n```\n\n### With ZSH Integration\n\n```bash\n# Navigate to a Rust project\nmgcd rust\n\n# Pull all work repositories\nmgpull work\n\n# Check status of all auth-feature repositories\nmgstatus auth-feature\n```\n\n## 🔄 How it Works\n\nmangit stores metadata about your Git repositories in a simple JSON file located at `~/.mangit/repos.json`. This metadata includes:\n\n- Repository path\n- Associated tags\n- Access history (for frecency-based sorting)\n\nThe tool doesn't modify your repositories or require any changes to your existing directory structure.\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Fmangit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftizee%2Fmangit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Fmangit/lists"}