Command line tool to send GitHub pull-request
Project description
git-pull-request is a command line tool to send GitHub pull-request from your terminal.
Installation
Use the standard Python installation method:
pip install git-pull-request
Usage
You need to write your GitHub credentials into your ~/.netrc file. In case you have 2FA enabled, make sure to replace your password by a Personal access token:
machine github.com login jd password f00b4r
Note: since credentials are stored in plain text, you should encrypt your $HOME directory to improve security.
Once you made a bunch of commits into a branch, just type:
git pull-request
This will:
Fork the upstream repository into your account (if needed)
Add your forked repository as a remote named “github” (if needed)
Force push your current branch to your remote
Create a pull-request for your current branch to the remote matching branch, or master by default.
If you add more commits to your branch later or need to rebase your branch to edit some commits, you will just need to run git pull-request to update your pull-request. git-pull-request automatically detects that a pull-request has been opened for your current working branch.
Difference with hub
The command-line wrapper hub provides hub fork and hub pull-request as command line tols to fork and create pull-request for a long time now.
Unfortunately, it’s hard to combine them in an automatic way to implement this complete workflow. For example, if you need to update your pull-request, there’s no way it can know that a pull-request has already been opened and calling hub pull-request would open a new pull-request.
git-pull-request wraps all those operation in a single hand convenient tool.
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
File details
Details for the file git-pull-request-2.0.0.tar.gz
.
File metadata
- Download URL: git-pull-request-2.0.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c75a13f0d7cf260c761826f45a79c7eb118df91133b6e0cac66cced598a437 |
|
MD5 | c2f510c7979b04842fb96f10eca5c9cd |
|
BLAKE2b-256 | dccd2bf1c3e00ad3aaaf789db4652945d70ef99f6de092be504228f8efc09ce5 |