Skip to main content

A tool to simplfy git operations

Project description

Simpgit

A tool to simplify git usage with sprinkles of AI magic.

Humans think in simpler terms than git operates in. This tool aims to bridge that gap by providing a simpler language to do common git tasks. Plus an LLM can write your commit messages for you.

You can load recent information with gs load, save current changes with gs save and share them with gs share.
Behind the scenes it's exactly what you would expect from git, but with a simpler interface.

Install

$ export OPENAI_API_KEY=...
$ pip install simpgit

Usage

Within a repo, run:

(.venv) $ sg --help
Commands:
  --help: show this help message and exit    
    save <message>: add files and commit changes. Massage is genereated if not provided         
    share <message>: Add, commit and push changes to git. Massage is genereated if not provided
    load : pull changes from git    
    commit <message>: commit changes. Massage is genereated if not provided

Automations:
  auto <save|share> <interval> --<detach>: run a service
  list <save|share>: list running services
  stop <save|share>: stop a service

Basic Example

sg save

> Entering new StuffDocumentsChain chain...


> Entering new LLMChain chain...
Prompt after formatting:
Write a concise summary of the following:
...
> Finished chain.
Automated commit - 4 files:
 writing README.md new instructions.
gitllm/__init__.py
gitllm/cli.py
gitllm/git.py
pyproject.toml

Automation Example

$ sg auto commit 5 --detach
Running auto commit every 5.0 minutes in the background

$ sg list commit
Auto commit every 5.0 on pid 96641  in repo at /Users/yonatanalexander/development/xethub/gitllm

$ sg stop commit
Stopping auto-git commit - in <repo>
Stopping processes for commit...
Stopped auto 96641..

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

simpgit-0.0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

simpgit-0.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file simpgit-0.0.2.tar.gz.

File metadata

  • Download URL: simpgit-0.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for simpgit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 eeaee378f44dcecf45d10a827127c6fff59b02858bac5f53742f3b0b0df75b3b
MD5 88d3e0cf5aff1f8b2f05186443e7621b
BLAKE2b-256 7effe8165bf5c1cc11def8c400ef35947f49a6951c885fc1f555408cf1d76753

See more details on using hashes here.

File details

Details for the file simpgit-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: simpgit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for simpgit-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee07a9ddff152be0faba05150071c5ebc96e885f2b942d9fae64336c2e64c5ee
MD5 7915b506bb681572b3e7fd4bddfa1ce5
BLAKE2b-256 51b6024732b529dfe190392f371d20024265fa73ed9828ff1665bb9d35ecfb61

See more details on using hashes here.

Supported by

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