A command-line tool that makes git easier to use with GitHub.
pull-request
push target detection for git config push.default
is "upstream", but when the current branch does not have upstream configurationFixes:
hub pull-request
: Avoid crash when the current branch is pushed to a non-GitHub remote
BROWSER
environment variable now supports values with spaces in them (must be shell-quoted)
hub help
: support man
appearing in a path that has spaces
Docs: mention that comma-separated lists must not have spaces
Add hub api --paginate
option to automatically fetch all pages of results
Add hub pr show [<number>]
command to open a pull request in the browser
Add hub pull-request --no-maintainer-edits
flag to disallow project maintainers being able to push to your branch
Abort hub pull-request
with a helpful error message if the current branch wasn't pushed to a git remote
hub issue -M
now accepts milestone names instead of just numbers
Drop support for legacy hub.http-clone
git config value (this was broken for a while and nobody complained, so I deemed it safe to drop in a minor rather than a major release)
Fix querying git configuration when GIT_TRACE is used
Support detached HEAD if hub pull-request --head
was passed
Fix newline in hub create
error message
Ensure HTTP connection reuse across API calls
Avoid crash in hub remote
argument parsing
Fix hub -C mydir merge <URL>
by propagating global git arguments to Before/After chains
Preserve tilde ~
character in man pages
Create draft pull requests with hub pull-request --draft
Draft pull requests are considered work in progress: they don't automatically request others for review and they are not mergeable while in their draft state.
Fix compatibility with git when run with no arguments: hub --git-dir=.git
Fix issue/PR --format %L
output in no-color mode
Fix writing over existing cache files in hub api
Allow repository names that start with a -
character
List api
among custom hub commands in help
New hub pr list --format
fields %pS
and %pC
for PR state and color
%pS
: "open", "draft", "merged", or "closed"%pC
: green, gray, purple, or redHave commands with rich output respect the --color
flag
--color=auto
--color
is equivalent to --color=always
--color=never
disables color for TTYsMake man pages parseable with whatis
Make hub checkout
work independently of remote refspec
Add support for hub ci-status --format <FORMAT>
string
Add hub create --remote-name <REMOTE>
flag
Allow passing in a raw request body via hub api --input <FILE>
Cache HTTP 4xx (except 403) server responses in hub api --cache
Ensure consistent ordering of hub ci-status -v
results
Avoid crashing on invalid GitHub hostname
Fix parsing empty string within command-line arguments