Skip to main content

Git Agent for git operations automation. It will commit file by file on day by day, to make sure you have a commit every day.

Project description

GitAgent

PyPI PyPI - Python Version PyPI - License

Git Agent for git operations automation.

It will commit file by file on day by day, to make sure you have a commit every day.

Installation

pip install oh-my-git-agent

Usage

# 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

Full Documentation:

$ gcli --help

 Usage: cli.py [OPTIONS]

 自动填写 commit 信息提交代码

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --repo-dir                         TEXT  git 仓库目录 [default: .]                                                        │
│ --ai                    --no-ai          是否使用 AI 填写 commit 信息 [default: no-ai]                                    │
│ --api-key                          TEXT  OpenAI API Key [default: None]                                                   │
│ --base-url                         TEXT  OpenAI API URL [default: https://api.deepseek.com]                               │
│ --model                            TEXT  OpenAI Model [default: deepseek-chat]                                            │
│ --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.                                                      │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oh_my_git_agent-1.0.21.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oh_my_git_agent-1.0.21-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file oh_my_git_agent-1.0.21.tar.gz.

File metadata

  • Download URL: oh_my_git_agent-1.0.21.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/24.3.0

File hashes

Hashes for oh_my_git_agent-1.0.21.tar.gz
Algorithm Hash digest
SHA256 68e9f97547a2209dabf6acda5e9088f9f1af0e5e7be077b3d1fefecd1573aa31
MD5 4f6e4338635b8300f3e77ed3232cfe2e
BLAKE2b-256 2b6143f36707529f9e180928509cd20b7414f87e7b8d720aa19b0882e8e305e8

See more details on using hashes here.

File details

Details for the file oh_my_git_agent-1.0.21-py2.py3-none-any.whl.

File metadata

  • Download URL: oh_my_git_agent-1.0.21-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/24.3.0

File hashes

Hashes for oh_my_git_agent-1.0.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 78e8b02a1cd5f8ac63480f22ced20e63fb0ae085c656cbc60ca10e975ff1fb5c
MD5 36193d176669336ee8a012c4f7721852
BLAKE2b-256 c7ca61e72d0d266a30be960be9b50797d013e61587134e9732e7845aec3be5d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page