Skip to main content

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

DevOps By Rultor.com

make PDD status Hits-of-Code License

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

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 then add+commit it (no push):

commit

Then, pull recent changes from the master of the upstream:

pull

Finally, write some code and add+commit+push it:

push

Don't forget to define the OPENAI_API_KEY environment variable with the OpenAI key. Also, don't forget to authenticate with gh auth.

Conventions

In order to work smoothly, you have to respect a few conventions:

  • Branch names are always integers, equal to GitHub issue numbers
  • The main branch is master
  • All commits are GPG-signed (how?)
  • The origin is the fork, while the upstream is the main repo (why?)

Maybe in future versions we'll make it 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


Download files

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

Source Distribution

gitted-0.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

gitted-0.0.3-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file gitted-0.0.3.tar.gz.

File metadata

  • Download URL: gitted-0.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for gitted-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c73e2b2ef78ec55b3ea524c0e7e1dc20acb5366a2061724c9dcc7d5f8612982e
MD5 d93ec45e983b5c2aec3313411dfb944f
BLAKE2b-256 4a99c58f076dfe729f0f777f4619cc911ac1bb83ab125492d96eea86546e20bc

See more details on using hashes here.

File details

Details for the file gitted-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gitted-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for gitted-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87cd0d05e4803ced105ea84ac33fe5ffc08ba45593e2addf331afe7c3c9c1732
MD5 68f8c2bd93760d1893a601ad4209a711
BLAKE2b-256 c50fbd0984d3631609d04b5538ae63525c89bd95da38456a5a4134f1096223d0

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