Show HN: Giti – Natural Language to Git Commands with Local LLM
I built Giti, a command-line tool that converts plain English into actual Git commands using a fast, local language model (Qwen2.5-Coder, ~1 GB).
Example:
Input: giti "undo last commit"
Output: git reset --soft HEAD~1
No internet required after setup. No API keys. You can also run it in an interactive shell to chain commands naturally.
Key features: - Natural language to Git translation - Local LLM powered by Qwen2.5-Coder in GGUF format - Works fully offline after model download - Dry-run mode to preview commands before running - Interactive shell mode for session-based workflows - Context file support to teach Giti your custom Git habits
Quick install: - Clone the repo - Install llama-cpp-python - Add giti to your PATH - Download the 1GB model from HuggingFace - Run giti "your query."
You can also enhance its accuracy using context files in a simple Q&A format like:
USER: How to start new feature? BOT: git checkout main && git pull && git checkout -b feature/<name>
This lets Giti learn your workflow and generate project-specific Git commands.
Thanks for checking it out.
No comments yet