Getting Started
Installation
-
First, install
@doremijs/igit-cli
using your preferred package manager:Terminal window npm install @doremijs/igit-cliTerminal window yarn add @doremijs/igit-cliTerminal window pnpm add @doremijs/igit-cli -
Initialize iGit in your
Git
project:Terminal window npx igit initCheck the generated configuration file
.config/igit.yaml
and configure it according to your project needs ✨ (Theyaml
file comes with schema hints for editing 🎉). -
Install Git Hooks:
Terminal window npx igit install -
Modify code and commit
Terminal window # update some codegit add .git commit -m "feat: update some code"iGit will execute
lint-staged
code checks, add emojis, and perform other operations according to the configuration file above. -
Try AI-powered commits
You can use iGit’s AI commit feature, which automatically generates commit messages based on your code. First, you need to add AI-related configuration to the config file, then execute:
Terminal window git add .npx igit commit -yiGit will automatically summarize your changes and generate a commit message that follows the Conventional Commits specification.
Next Steps
- Git Hooks - Learn how to configure and use Git Hooks
- AI Commit - Deep dive into the AI commit feature
- Configuration Guide - Learn how to customize iGit