Create GitHub pull requests from the command line!
git pr [options] ["title"] ["description"]
Omitting title and description will open the default editor, similar to git commit
.
-b, --base "master" Base branch for the pull request
-y, --yes Don't show confirmation prompt
-c, --commit-message Use the last commit message as title
-o, --browse Open created pull request url in browser.
brew install mathiasvr/repo/git-pr
Place the git-pr script in your $PATH
, and make it executable. Example:
chmod +x git-pr
cp git-pr /usr/local/bin
To avoid entering your password every time, set up password caching.
Optionally create a personal access token and use that instead of your password.