"고민은 개발만 늦출 뿐, 커밋 메시지 고민은 Commit-cat에게 맡기세요."
commit-cat은 Gemini AI를 활용하여 Git Stage에 올라온 변경 사항을 분석하고,
가장 적절한 커밋 메시지를 제안, 간단한 코드리뷰를 해줍니다.
- Google Gemini API를 통해 소스 코드의 문맥을 이해하고 커밋 메시지를 생성해요.
- 변경된 파일과 라인 정보를 정밀하게 분석하여 요약해요.
- 개선점이나 취약점이 보이면 알려줘요.
- 가벼운 모델을 사용해 5초 내에 응답을 받을 수 있어요.
# Clone the repository
git clone https://github.com/sngminn/commit-cat.git
# Install dependencies
npm install
# Link globally (Optional)
npm link루트 디렉토리에 .env 파일을 생성하고 Gemini API 키를 설정하세요.
GEMINI_API_KEY=your_google_gemini_api_key_here가장 빈번하게 사용되는 명령어입니다.
# 기본 실행 (영어 메시지 추천)
commit-cat
# 한국어 모드 실행
commit-cat -k- 변경 사항을
git add합니다. commit-cat을 실행합니다.- AI가 제안하는 커밋 메시지 중 하나를 선택하거나 직접 수정합니다.
# Default execution (Suggests English messages)
commit-cat
# Run with Korean mode
commit-cat -k- Stage your changes with
git add. - Run
commit-cat. - Select one of the AI-suggested commit messages or edit it yourself.