Metadata-Version: 2.1
Name: oh-my-git-agent
Version: 1.0.16
Summary: A simple git agent for managing git repositories
Home-page: https://github.com/LinXueyuanStdio/GitAgent
License: MIT
Author: Xueyuan Lin
Author-email: linxy59@mail2.sysu.eud.cn
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: GitPython
Requires-Dist: loguru
Requires-Dist: typer
Requires-Dist: xlin
Description-Content-Type: text/markdown

# GitAgent

![PyPI](https://img.shields.io/pypi/v/oh-my-git-agent) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oh-my-git-agent) ![PyPI - License](https://img.shields.io/pypi/l/oh-my-git-agent)

Git Agent for git operations automation


![](screenshot.png)

## Installation
```bash
pip install oh-my-git-agent
```

## Usage

```bash
# You can call gcli. Default is to commit at current directory
gcli

# You can specify the repo-dir and call gcli at any where
gcli --repo-dir .

# You can use ai to generate commit message. Default provider is DeepSeek
gcli --ai --api-key sk-xxx --repo-dir .

# or use openai to generate commit message
gcli --ai --base-url null --api-key sk-xxx --repo-dir .

# After committing, you can push code to remote
git push origin main
```


```bash
$ gcli --help
 Usage: gcli [OPTIONS]

 自动填写 commit 信息提交代码

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --repo-dir                  TEXT  git 仓库目录 [default: None] [required]                                   │
│    --install-completion              Install completion for the current shell.                                 │
│    --show-completion                 Show completion for the current shell, to copy it or customize the        │
│                                      installation.                                                             │
│    --help                            Show this message and exit.                                               │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

