Tired of wrestling with Git commands? Giti, a new command-line tool, lets you control Git using plain English. Powered by a fast, local language model (Qwen2.5-Coder, ~1GB), Giti translates your natural language instructions into the equivalent Git commands.
Imagine this: Instead of trying to remember the exact syntax for undoing your last commit, you simply type:
giti "undo last commit"
And Giti outputs:
git reset --soft HEAD~1
No more searching Stack Overflow or flipping through cheat sheets. Just tell Giti what you want to do, and it handles the Git complexities for you.
Offline and Private
One of Giti’s standout features is its local operation. The language model runs entirely on your machine, meaning no internet connection or API keys are required after the initial setup. This ensures your code and workflow remain private.
Interactive Shell and Custom Habits
Giti also offers an interactive shell mode for more complex workflows. This lets you chain commands together naturally, creating a seamless Git experience. You can even teach Giti your specific Git habits using context files. For example:
USER: How to start new feature?
BOT: git checkout main && git pull && git checkout -b feature/
This allows Giti to learn your project-specific conventions and generate more accurate commands.
Key Features at a Glance:
- Natural language to Git command translation
- Local LLM (Qwen2.5-Coder in GGUF format)
- Offline operation after model download
- Dry-run mode for previewing commands
- Interactive shell for chained commands
- Context file support for custom Git habits
Quick Installation Guide:
- Clone the repo
- Install
llama-cpp-python
- Add
giti
to your PATH - Download the 1GB model from HuggingFace
- Run
giti "your query"
Giti simplifies Git interactions, making version control more accessible and efficient. Whether you’re a seasoned developer or just starting out, Giti can streamline your workflow and help you focus on what matters most: writing great code.