gityo
v0.0.0
Published
`gityo` is a CLI that helps you stage changes, write or generate a commit message, commit, and optionally run a post-commit git action.
Readme
gityo
gityo is a CLI that helps you stage changes, write or generate a commit message, commit, and optionally run a post-commit git action.
It is built for people who want a faster commit flow without turning git into a wall of commands.
Install
npm install -g gityoOr run it without installing globally:
npx gityoWhat it does
- lets you choose which changed files to stage
- lets you write your own commit message
- can generate a commit message with AI
- creates the commit for you
- can run a post-commit action like
git push
Quick use
Run it inside a git repository:
gityoTypical flow:
- Pick files to stage
- Type a commit message or generate one
- Create the commit
- Optionally run the configured post-commit action
Common commands
gityo
gityo --stage
gityo --generate
gityo --message "fix login redirect bug"
gityo --yoloAI setup
If you want AI-generated commit messages, set a model once and reuse it:
gityo config set model openai gpt-4.1 YOUR_API_KEYThen use:
gityo --generateSupported providers include OpenAI, Anthropic, Google, OpenRouter, and compatible custom endpoints.
Config
View your current config:
gityo configYou can also write config manually.
Project config goes in:
.gityo.config.jsonGlobal config goes in:
~/.config/gityo.jsonYou can also add repo-specific writing instructions in:
.gityo.mdThat file is useful when you want commit messages in a certain tone or format for one project.
If you want editor autocomplete and validation, use this schema:
https://github.com/NazmusSayad/gityo/raw/refs/heads/schema/schema.jsonExample:
{
"$schema": "https://github.com/NazmusSayad/gityo/raw/refs/heads/schema/schema.json",
"model": {
"provider": "openai",
"name": "gpt-4.1"
},
"autoAcceptMessage": false,
"postCommand": "push",
"autoRunPostCommand": false,
"instructions": "Write short, clear commit messages."
}Example instructions file:
Use imperative commit messages.
Mention the user-facing change first.
Keep the subject line under 72 characters.Priority is simple:
.gityo.mdfor repo-specific instructions.gityo.config.jsonfor project config~/.config/gityo.jsonfor your defaults
A few useful examples:
gityo config set postCommand push
gityo config set autoRunPostCommand true
gityo config set autoAcceptCommitMessage trueGood for
- quick everyday commits
- cleaner staging and commit flow
- AI-assisted commit messages without losing control
Notes
- run it inside a git repo
- if there are no changed files, it exits early
--yolois the fastest mode and skips the usual prompts
