Command-Line Shortcuts for a Primitive Git Flow
If all you need to do with Git is make branches, push, and sync, this collection of command-line commands may simplify your workflow. Well, it simplifies mine, a hundred times per day.
First, install Python3, Git, pip, gh, and Bash.
Then, install this Python package (with Bash scripts inside):
pip install gitted==0.0.23
Then, in order to make a contribution to a GitHub repo, assuming you've made a fork already and cloned it (in the command line):
First, start a branch to resolve issue no. 42 (for example):
branch 42
Then, write some code and add+commit it (no push):
commit 'Just fixed a small bug'
Then, pull recent changes from the master of the upstream:
pull
Finally, write more code and add+commit+push it:
push 'Just fixed a big bug'
If you omit the commit message for the commit or the push command,
they will use ChatGPT to generate it, looking at the changes you've made.
To make it work, define the OPENAI_API_KEY environment variable with the
OpenAI key.
To use a different model, set GITTED_MODEL to its identifier; it defaults
to gpt-4o-mini. To point at a different OpenAI-compatible endpoint
(for example a local LLM such as Ollama or llama.cpp with the OpenAI
shim, or any other proxy), set OPENAI_BASE_URL to the endpoint's URL;
the openai Python client picks it up automatically.
Conventions
In order to work smoothly, you must respect a few conventions:
- Branch names are always integers, equal to GitHub issue numbers (why?)
- All commits are GPG-signed, if you have a key (how?)
- The
originis the fork, while theupstreamis the main repo (why?)
Perhaps in future versions we'll make these configurable. However, at the moment, that's what we have.
How to Contribute
Install GNU make and uv. Then, run:
make
Should build. If it doesn't, submit a bug report.
Metadata
Release files for gitted 0.0.24
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gitted-0.0.24.tar.gz | 11.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitted-0.0.24-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.6 kB
Release files / gitted-0.0.24.tar.gz
| Download URL | gitted-0.0.24.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
660ae1acdbc6e5cf3b18a1cc3fb82624c15608eb09de283ac021430c8f4cab90
|
|
BLAKE2b-256 checksum How to use checksums |
55bc08858903dbc0202a72fa38617d68dad9ef8011c9a615ef3b77e1802fc337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / gitted-0.0.24-py3-none-any.whl
| Download URL | gitted-0.0.24-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fc954a39b0f4332b3f7dc9860297791420aeab34a6c1b1ae82ec3c20d7ca163
|
|
BLAKE2b-256 checksum How to use checksums |
c5ddebfb3edc29947000d2afbdc37050c35eda27287f9e890b4ab77923113f7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Security for gitted 0.0.24
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.