Package: git-pp
git ppA (tiny) Git utility for auto-committing and concurrent pushing.Powered byasyncio, with no dependency besidespython>=3.10andgit.git ppFeaturesDemoUse cases and example usageInstallationpipxpipAURUsageDevelopFeaturesAuto-stages and commits with custom or generated commit messagesPushes to multiple or all remotes of a git repositoryconcurrentlywithasyncioOperates onany number of git repositoriesat the same timeDemoIn 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.Use cases and example usageYou have multiple remotes registered on a local git repository (or more)
and want to push the changes to all or some of the remotes fast and efficiently.# Use --push-only or -po$gitpp--push-only# this pushes to all remotes of the current git repository, does not stages or commits$gitpp--push-only--remote[oneormoreremotes]# only pushes to the specified remotes$gitpp-po--timeout10# terminates pushing to one remotes if it takes more than 10 seconds$gitpp-po-bdev~/my-proj~/my-proj2# pushes the dev branch to all remotes in ~/my-proj and ~/my-proj2 repositoryYou're tired of usinggit add --all && git commitevery time you make a little change
and want to automate this across one or more repositories.$gitpp# stages all files in the current git repository and commits with a timestamp as the commit message$gitpp-m'Initial commit'# custom commit message$gitpp--no-status# don't show git status and git add outputsAnd you can do both of the above (auto-commit and push) with--push:# Use --push or -p$gitpp--push# stages, commits and pushes to all remotes.$gitpp--push--remote[oneormoreremotes]$gitpp-p--timeout10$gitpp-p-bdev~/my-proj~/my-proj2InstallationFirst make sure thegitexecutable is installed and in your$PATH.Note that non-UNIX systems are not officially supported.pipxThis is the recommended installation method.$ pipx install git-pppip$ pip install git-ppAURFor Archlinux.$ yay -S python-git-ppUsageYou can either invoke this tool withgit-pporgit pp,--helpis unsupported when using the latter.$ 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)Develop$ git clone https://github.com/tddschn/git-pp.git
$ cd git-pp
$ poetry install