Skip to main content

Command line tool to send GitHub pull-request

Project description

Build Status https://badge.fury.io/py/git-pull-request.svg

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:

machine github.com login jd password f00b4r

Once you made a bunch of commits into a branch, just type:

git pull-request

This will:

  1. Fork the upstream repository into your account (if needed)

  2. Add your forked repository as a remote named “github” (if needed)

  3. Force push your current branch to your remote

  4. 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


Download files

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

Source Distribution

git-pull-request-1.2.0.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file git-pull-request-1.2.0.tar.gz.

File metadata

File hashes

Hashes for git-pull-request-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b263e62872c9bbf3a13af172fddac87d80f69ba0503a8467269cc5ee007ddee2
MD5 0f4b7eff04d035cb9a6430efb69b6b57
BLAKE2b-256 3331c7777d90889cc4cf7978891d8a9f54bd6e95eab83afea940c222d64b2af5

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