A command-line tool that makes git easier to use with GitHub.
Add hub api -H
flag to set HTTP request headers
Add hub api -i
flag to output HTTP response headers
Change how hub api
deals with HTTP errors:
Error: HTTP {STATUS}
message on stderrFix hub execution under WSL (Windows Subsystem for Linux)
New hub api
command for scripting with GitHub API https://github.com/github/hub/pull/2016
https://hub.github.com/hub-api.1.html
Re-implement CLI flag parsing so that --message <MSG>
is equivalent to --message=<MSG>
https://github.com/github/hub/pull/2008
Re-implement make man-pages
in Go instead of Ruby https://github.com/github/hub/pull/1990
issue create --label
is now issue create --labels
to align with existing documentation
Output crash debugging information on stderr instead of stdout
Build improvements:
hub release
Respect chosen Enterprise host on hub init -g
Ensure consistent order of options when prompted to choose between multiple configured GitHub hosts
Ensure alphabetical sort of hub issue labels
output
Improve contrast of label text vs. its background color
Various documentation formatting tweaks
Add support for hub pr list --state=merged
Add base/head/merge commit SHA and merged date information to hub pr list --format=FORMAT
Un-deprecate converting issues to pull requests with hub pull-request -i <issue>
2a748a048d6903eca78332a484e63f8d647caf02
Improve detecting default hub pull-request
base branch name
Avoid the Aborted: the origin remote doesn't point to a GitHub repository
error by allowing other git remotes as fallback
Improve hub create
dealing with an existing "origin" remote
Fix 256-color terminal support for macOS Terminal.app
Don't choke on literal %
output characters when using --format=FORMAT
Replace deprecated Dial with DialContext
Document how we scan git remotes and branch tracking information https://hub.github.com/hub.1.html#CONVENTIONS
Indicate that long-form CLI flags with values must use the equal sign like --message=VALUE
Fix using git aliases for git 2.20
Add support for passing multiple --message
options for compatibility with git
Allow the %h
token in HostName
value read from ssh config
Use "scissors" line to delineate comments in editable messages instead of stripping away lines that start with #
. This helps preserve Markdown headings in hub pull-request
, hub release create
, and similar commands that open a text editor interactively.
Everything above the following line is kept in the message; everything below is discarded:
# ------------------------ >8 ------------------------
New command hub issue show <NUMBER>
Add hub release show --format=<FORMAT>
functionality
hub pr list --format=%rs
lists requested reviewers
Add support for communicating with GitHub Enterprise over Unix socket
# ~/.config/hub
example.com:
user: USER
oauth_token: TOKEN
unix_socket: /path/to/socket
Prevent hub create
setting a public upstream when creating a private repo
Fix hub create
in place of a renamed repo
Fix hub release create/edit/delete
when there are multiple git remotes
Auto-detect private/pushable repos in hub remote add
Fix hub ci-status
exit code when there is only Checks
Allow hub compare <RANGE>
even if not on any branch
Ensure consistent sort direction when listing issues, PRs
Match requested team names by slug instead of name in hub pull-request -r <TEAM>
hub issue create
: ignore the .github/ISSUE_TEMPLATE
directory instead of crashing
hub pull-request
: avoid re-requesting reviewers in case of CODEOWNERS
hub ci-status
: handle cases when Checks API is unavailable, like older GitHub Enterprise
Handle HTTP 422 message format from server response
Ignore crash for malformed ~/.config/hub
file
Clarify hub init -g
documentation that it doesn't imply hub create
hub clone
: add more documentation about git protocol used
ci-status
also query Checks API
hub compare
hub compare
for Enterprise when <USER>
is specifiedremote add -t BRANCH
argumenthub delete [<OWNER>/]<REPO>
Add hub compare --copy
flag
Add hub release --format=<FORMAT>
option
Add hub pull-request --no-edit
flag
When checking out a pull request, ensure that git push
with no arguments works
Support XDG Base Directory Specification
Enable hub pr list -h <BRANCH>
when owner isn't specified
Include docs/
in list of locations to look up pull request and issue templates in