{"id":18150869,"url":"https://github.com/prime-infinity/qit","last_synced_at":"2025-04-28T17:38:55.132Z","repository":{"id":259285875,"uuid":"877259927","full_name":"prime-infinity/qit","owner":"prime-infinity","description":"A CLI tool to automate git commands. Quick git add, commit, and push with one command","archived":false,"fork":false,"pushed_at":"2024-10-24T16:31:21.000Z","size":29,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T11:41:33.257Z","etag":null,"topics":["automation","cli","git","productivity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/prime-infinity.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}},"created_at":"2024-10-23T11:09:55.000Z","updated_at":"2024-10-31T07:23:58.000Z","dependencies_parsed_at":"2024-10-24T04:31:02.314Z","dependency_job_id":"359f4fb9-b33d-4a95-b165-c63843806adc","html_url":"https://github.com/prime-infinity/qit","commit_stats":null,"previous_names":["prime-infinity/qit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prime-infinity%2Fqit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prime-infinity%2Fqit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prime-infinity%2Fqit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prime-infinity%2Fqit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prime-infinity","download_url":"https://codeload.github.com/prime-infinity/qit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251357066,"owners_count":21576643,"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":["automation","cli","git","productivity"],"created_at":"2024-11-02T01:05:44.634Z","updated_at":"2025-04-28T17:38:55.112Z","avatar_url":"https://github.com/prime-infinity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qit 🚀\n\nA simple CLI tool to automate your git workflow. Qit combines the three most common git commands (`git add .`, `git commit -m`, and `git push`) into a single command.\n\n## Installation\n\n### Global Installation(preferred)\n\nTo install the qit-cli globally so it can be used anywhere on your system:\n\n```bash\nnpm install -g qit-cli\n```\n\n### Local Installation\n\nIf you prefer to install it locally in a specific project folder:\n\n```bash\nnpm install qit-cli\n```\n\nTo run it locally, use npx in your project folder:\n\n```bash\nnpx qit \"Your commit message\"\n\n```\n\nIf installed glabally, just use qit in your project folder:\n\n```bash\nqit \"Your commit message\"\n\n```\n\n## Usage\n\n### Basic Usage\n\nTo quickly stage, commit and push your changes, use:\n\n```bash\nqit \"your commit message\"\n```\n\nThe command above will:\n\n1.  Stage all changes (git add .)\n2.  Create a commit with your message (git commit -m \"your message\")\n3.  Push to your configured branch (git push origin )\n\n### Examples\n\n```bash\n# Fix a bug\nqit \"fixed navigation menu bug\"\n\n# Add new feature\n\nqit \"added dark mode support\"\n\n# Update documentation\n\nqit \"updated installation docs\"\n```\n\n### Handling Failed Pushes\n\nIf a push fails (e.g., due to no internet connection), the changes will be committed locally but remain unpushed. When your internet connection is restored, you can try pushing again using:\n\n```bash\nqit p\n```\n\nThis will run:\n\n```bash\ngit push origin \u003cbranch\u003e\n```\n\n## Configuration\n\n### Branch Configuration\n\nCreate a qit.config.json file in your project root to customize the target branch:\n\n```json\n{\n  \"branch\": \"develop\"\n}\n```\n\n## Default Settings\n\n- If no config file exists, Qit pushes to main branch\n- All changes are staged using git add .\n- Changes are pushed to origin remote\n\n## Features\n\n### Core Features\n\n- **Single Command Operation**: Execute multiple git commands with one command\n- **Configurable Branch**: Push to your preferred branch using config file\n- **Smart Defaults**: Works out of the box with sensible defaults\n- **Clear Feedback**: Colorful terminal output shows operation progress\n\n### Terminal Output\n\n- Stage changes: Blue indicators\n- Commit progress: Yellow indicators\n- Push status: Magenta indicators\n- Success messages: Green indicators\n- Error messages: Red indicators with clear descriptions\n\n## Requirements\n\n### System Requirements\n\n- Node.js 14 or higher\n- Git installed and configured\n- Active internet connection for pushing\n- A git repository initialized with a remote\n\n### Repository Requirements\n\n- Initialized git repository\n- Configured remote repository\n- Valid git credentials\n\n## Error Handling\n\nQit provides clear error messages for common issues:\n\n### Common Errors\n\n- No Commit Message\n\n```bash\n✗ Error: Please provide a commit message\nUsage: qit \u003ccommit message\u003e\n```\n\n- git operation failure\n\n```bash\nERROR\n✗ Git operation failed: [error details]\n```\n\n### Error Prevention\n\n- Always include a commit message\n- Ensure you have internet connection before pushing\n- Check that your git credentials are configured\n- Verify that your repository has a remote configured\n\n### Dependencies\n\n- execa: Modern subprocess handling\n- ansi-colors: Terminal styling\n- fs \u0026 path: File system operations\n\n## Contributing\n\n### Getting Started\n\n1.  Fork the repository\n2.  Create a feature branch\n3.  Make your changes\n4.  Submit a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprime-infinity%2Fqit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprime-infinity%2Fqit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprime-infinity%2Fqit/lists"}