{"id":30020704,"url":"https://github.com/gnokit/gcommit","last_synced_at":"2026-05-05T17:33:02.793Z","repository":{"id":305625125,"uuid":"1023395362","full_name":"gnokit/gcommit","owner":"gnokit","description":"AI-powered Git commit message generator that uses Ollama to create conventional commit messages from your staged changes.","archived":false,"fork":false,"pushed_at":"2025-07-23T05:52:19.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T04:08:06.168Z","etag":null,"topics":["cli","developer-tools","git","ollama"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnokit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-21T05:27:53.000Z","updated_at":"2025-07-23T05:52:22.000Z","dependencies_parsed_at":"2025-07-21T07:24:13.780Z","dependency_job_id":"af6f142d-26da-45b7-924d-8c56f026c642","html_url":"https://github.com/gnokit/gcommit","commit_stats":null,"previous_names":["gnokit/gcommit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnokit/gcommit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnokit%2Fgcommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnokit%2Fgcommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnokit%2Fgcommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnokit%2Fgcommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnokit","download_url":"https://codeload.github.com/gnokit/gcommit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnokit%2Fgcommit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cli","developer-tools","git","ollama"],"created_at":"2025-08-06T02:03:05.711Z","updated_at":"2026-05-05T17:33:02.779Z","avatar_url":"https://github.com/gnokit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcommit 🤖\n\nAI-powered Git commit message generator that uses Ollama to create conventional commit messages from your staged changes.\n\n\u003cimg width=\"930\" height=\"406\" alt=\"Screenshot 2025-07-23 at 1 49 12 PM\" src=\"https://github.com/user-attachments/assets/416a4cc6-4c2c-4382-8562-ed139c762516\" /\u003e\n\n## Features\n\n- **AI-powered**: Uses local Ollama LLM to generate commit messages\n- **Conventional Commits**: Follows [Conventional Commits](https://www.conventionalcommits.org/) format\n- **Rich Terminal UI**: Beautiful, modern terminal interface with progress bars and styled output\n- **Untracked file warnings**: Alerts you about files not included in the commit\n- **Interactive confirmation**: Review and edit AI-generated messages before committing\n- **Progress indicators**: Real-time progress bars and spinner animations\n- **Cross-platform**: Works on macOS, Linux, and Windows (WSL)\n- **Virtual environment**: Uses isolated Python environment via wrapper script\n\n## Quick Start\n\n### 1. Install Ollama\n\nDownload and install Ollama from [ollama.ai](https://ollama.ai), then pull the recommended model:\n\n```bash\nollama pull gemma3:4b-it-qat  # recommended model\n```\n\n### 2. Clone and Setup\n\n```bash\ngit clone \u003cyour-repo-url\u003e\ncd gcommit\n```\n\n### 3. Manual Setup (Required)\n\nYou need to manually set up the Python virtual environment:\n\n```bash\n# Create and activate virtual environment\npython3 -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n\n# Install dependencies\npip install -r requirements.txt\n\n# Make wrapper executable\nchmod +x gcommit\n```\n\n### 4. Add to PATH (Recommended)\n\nTo use gcommit from any project directory, add it to your PATH:\n\n```bash\n# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)\nexport PATH=\"$PATH:/path/to/gcommit\"\n\n# Or create a symlink\nsudo ln -s /path/to/gcommit/gcommit /usr/local/bin/gcommit\n```\n\n### 5. First Run\n\n```bash\ngcommit \u003cyour_initial_commit_message\u003e\n```\n\n## Usage\n\n### Workflow Example\n\n```bash\n# Make some changes\necho \"console.log('hello')\" \u003e app.js\n\n# Stage the changes\ngit add app.js\n\n# Generate commit message\ngcommit \"add console log message: hello\"\n# Output:\n# ┌─────────────────────────────────────────────────────┐\n# │                    Welcome                          │\n# │ 🤖 gcommit - AI-powered Git commit message generator │\n# └─────────────────────────────────────────────────────┘\n# \n# ─────── Analyzing Staged Files ───────\n# Processing files... ━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1/1\n# Analyzing app.js... \n# \n# ─────── File Analysis Results ───────\n# ┌────────────┬─────────────────────────────────────────┐\n# │ File       │ Summary                                 │\n# ├────────────┼─────────────────────────────────────────┤\n# │ app.js     │ Added console.log statement for debugging│\n# └────────────┴─────────────────────────────────────────┘\n# \n# ─────── Generating Commit Message ───────\n# Creating commit message... \n# \n# ─────── Commit Message Preview ───────\n# ┌─────────────────────────────┐\n# │  Generated Commit Message   │\n# │                             │\n# │ feat: add console log for   │\n# │ debugging                   │\n# │                             │\n# │ - Added console.log         │\n# │   statement to app.js for   │\n# │   debugging purposes        │\n# └─────────────────────────────┘\n# \n# What would you like to do? (accept/reject/edit) [accept]: accept\n# ─────── Committing Changes ───────\n# Committing... \n# ✅ Changes committed successfully!\n```\n\n## Requirements\n\n- **Python 3.7+** (automatically handled by venv)\n- **Git** (must be in PATH)\n- **Ollama** (must be running locally)\n\n## How It Works\n\n1. **Rich UI Display** - Shows beautiful welcome header and organized sections\n2. **Checks for untracked files** - Displays warnings in styled tables\n3. **Reads staged changes** - Gets diff of staged files via `git diff --staged`\n4. **Progress Tracking** - Shows real-time progress bars and spinners during processing\n5. **AI generation** - Sends diff to Ollama LLM for conventional commit generation\n6. **Interactive Preview** - Displays commit message in styled panels\n7. **User confirmation** - Rich interactive prompts for approval/editing\n8. **Commits changes** - Executes `git commit` with final message\n\n## License\n\nMIT License - see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnokit%2Fgcommit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnokit%2Fgcommit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnokit%2Fgcommit/lists"}