Skip to main content

Git utility for auto-committing and concurrent pushing

Project description

git pp:

Git utility for auto-committing and concurrent pushing.

Powered by asyncio, with no dependency besides python>=3.10.

Features

  • Auto-stages and commits with custom or generated commit messages
  • Pushes to multiple or all remotes of a git repository concurrently with asyncio
  • Operates on any number of git repositories at the same time

Demo

asciicast

In this demo, git pp did the following in ~/config and ~/gui repos:

  • (Concurrently) Auto staged all changes and commits with ISO-8601 timestamps as commit messages;
  • (Concurrently) Pushed the changes in the checked out branch to all of their remotes, in this case, they’re origin and lab.

Installation

pipx

This is the recommended installation method.

$ pipx install git-pp

pip

$ pip install git-pp

AUR

For Archlinux.

$ yay -S python-git-pp

Usage

$ git pp -h
usage: git pp [-h] [-m COMMIT_MESSAGE] [-v] [-so] [-p] [-po] [-r REMOTE [REMOTE ...]] [-b BRANCH] [-f] [-t TIMEOUT] [DIRS ...]

Git utility for auto-committing and concurrent pushing

positional arguments:
  DIRS                  Dirs to operate on (default: ['.'])

options:
  -h, --help            show this help message and exit
  -m COMMIT_MESSAGE, --commit-message COMMIT_MESSAGE
                        commit message (default: None)
  -v, --version         show program's version number and exit
  -so, --status-only    Prints status only (default: False)
  -p, --push            Push to all remotes (default: False)
  -po, --push-only      Push to all remotes, without pre_pull (default: False)
  -r REMOTE [REMOTE ...], --remote REMOTE [REMOTE ...]
                        Remote name (default: None)
  -b BRANCH, --branch BRANCH
                        Branch name (default: None)
  -f, --force           Force push (default: False)
  -t TIMEOUT, --timeout TIMEOUT
                        Timeout for a single push (default: None)

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

git-pp-1.4.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

git_pp-1.4.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file git-pp-1.4.0.tar.gz.

File metadata

  • Download URL: git-pp-1.4.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

File hashes

Hashes for git-pp-1.4.0.tar.gz
Algorithm Hash digest
SHA256 faf0403463064156429590c725a8c0657f3fdd3580f9c1798eef1172066673e5
MD5 8b6586e587a2d933439bff74ebab42eb
BLAKE2b-256 a7f744213c00dc81f795b3900cbfadbdf6f6d04bfd257cbf09e473ae8af0f923

See more details on using hashes here.

File details

Details for the file git_pp-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: git_pp-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

File hashes

Hashes for git_pp-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea76b0481e511f7a7e55d05b23928959eef06f7e195b07d05c1503c7ae88c2e2
MD5 26c86640cd775d86c4174c327e086392
BLAKE2b-256 c48ee35996db38a5989f3bbb09f013a6ca7b25767f41afcafa71edf9d074954b

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