Collection of Bash scripts for Git auto-piloting, such as branch, push, pull, and commit.
Project description
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.16
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.
Conventions
In order to work smoothly, you must respect a few conventions:
- Branch names are always integers, equal to GitHub issue numbers
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitted-0.0.17.tar.gz.
File metadata
- Download URL: gitted-0.0.17.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e83f06adaaba232376195238703d7dced5ceb227d01f6b556b422c2e2bddece2
|
|
| MD5 |
1150b9e4e6de1ddb69cc88d7bc00f4f5
|
|
| BLAKE2b-256 |
15f95196b1da06af8973672c1283a56057a60188a9a3d2bab6f4a7827a5b4fbf
|
File details
Details for the file gitted-0.0.17-py3-none-any.whl.
File metadata
- Download URL: gitted-0.0.17-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cfad900fc106d754698acfb36b8832108b5f0b108fa888553a2ada1a228a9d0
|
|
| MD5 |
069ecea0f74dd36cc9256e6dedacffc8
|
|
| BLAKE2b-256 |
596141cef0a7265b6fe179a34c6917dfa2ac649157e35f5d98229dc6b9968924
|