{"id":13464702,"url":"https://github.com/mislav/hub","last_synced_at":"2025-05-12T13:24:23.012Z","repository":{"id":37276340,"uuid":"401025","full_name":"mislav/hub","owner":"mislav","description":"A command-line tool that makes git easier to use with GitHub.","archived":false,"fork":false,"pushed_at":"2024-02-02T21:00:44.000Z","size":7336,"stargazers_count":22911,"open_issues_count":296,"forks_count":2197,"subscribers_count":575,"default_branch":"master","last_synced_at":"2025-05-07T23:54:08.133Z","etag":null,"topics":["git","github-api","go","homebrew","pull-request"],"latest_commit_sha":null,"homepage":"https://hub.github.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mislav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-12-05T22:15:25.000Z","updated_at":"2025-05-07T20:55:33.000Z","dependencies_parsed_at":"2024-04-29T16:47:07.081Z","dependency_job_id":"7fde6934-7ee8-45a2-ad85-6530dc0f0b72","html_url":"https://github.com/mislav/hub","commit_stats":{"total_commits":2746,"total_committers":256,"mean_commits":10.7265625,"dds":0.5699198834668608,"last_synced_commit":"5c547ed804368763064e51f3990851e267e88edd"},"previous_names":["mislav/hub","github/hub","defunkt/hub"],"tags_count":101,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mislav","download_url":"https://codeload.github.com/mislav/hub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253745768,"owners_count":21957440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","github-api","go","homebrew","pull-request"],"created_at":"2024-07-31T14:00:48.898Z","updated_at":"2025-05-12T13:24:22.983Z","avatar_url":"https://github.com/mislav.png","language":"Go","readme":"hub is a command line tool that wraps `git` in order to extend it with extra\nfeatures and commands that make working with GitHub easier.\n\nFor an official, potentially more user-friendly command-line interface to GitHub,\nsee [cli.github.com](https://cli.github.com) and\n[this comparison](https://github.com/cli/cli/blob/trunk/docs/gh-vs-hub.md).\n\nThis repository and its issue tracker is **not for reporting problems with\nGitHub.com** web interface. If you have a problem with GitHub itself, please\n[contact Support](https://github.com/contact).\n\nUsage\n-----\n\n``` sh\n$ hub clone rtomayko/tilt\n#=\u003e git clone https://github.com/rtomayko/tilt.git\n\n# or, if you prefer the SSH protocol:\n$ git config --global hub.protocol ssh\n$ hub clone rtomayko/tilt\n#=\u003e git clone git@github.com:rtomayko/tilt.git\n```\n\nSee [usage examples](https://hub.github.com/#developer) or the [full reference\ndocumentation](https://hub.github.com/hub.1.html) to see all available commands\nand flags.\n\nhub can also be used to make shell scripts that [directly interact with the\nGitHub API](https://hub.github.com/#scripting).\n\nhub can be safely [aliased](#aliasing) as `git`, so you can type `$ git\n\u003ccommand\u003e` in the shell and have it expanded with `hub` features.\n\nInstallation\n------------\n\nThe `hub` executable has no dependencies, but since it was designed to wrap\n`git`, it's recommended to have at least **git 1.7.3** or newer.\n\nplatform | manager | command to run\n---------|---------|---------------\nmacOS, Linux | [Homebrew](https://docs.brew.sh/Installation) | `brew install hub`\nmacOS, Linux | [Nix](https://nixos.org/) | `nix-env -i hub`\nWindows | [Scoop](http://scoop.sh/) | `scoop install hub`\nWindows | [Chocolatey](https://chocolatey.org/) | `choco install hub`\nFedora Linux | [DNF](https://fedoraproject.org/wiki/DNF) | `sudo dnf install hub`\nArch Linux | [pacman](https://wiki.archlinux.org/index.php/pacman) | `sudo pacman -S hub`\nFreeBSD | [pkg(8)](http://man.freebsd.org/pkg/8) | `pkg install hub`\nDebian, Ubuntu | [apt(8)](https://manpages.debian.org/buster/apt/apt.8.en.html) | `sudo apt install hub`\nUbuntu | [Snap](https://snapcraft.io) | [We do not recommend installing the snap anymore.](https://github.com/github/hub/issues?q=is%3Aissue+snap)\nopenSUSE | [Zypper](https://en.opensuse.org/SDB:Zypper_manual) | `sudo zypper install hub`\nVoid Linux | [xbps](https://github.com/void-linux/xbps) | `sudo xbps-install -S hub`\nGentoo | [Portage](https://wiki.gentoo.org/wiki/Portage) | `sudo emerge dev-vcs/hub`\n_any_ | [conda](https://docs.conda.io/en/latest/) | `conda install -c conda-forge hub`\n\n\nPackages other than Homebrew are community-maintained (thank you!) and they\nare not guaranteed to match the [latest hub release][latest]. Check `hub\nversion` after installing a community package.\n\n#### Standalone\n\n`hub` can be easily installed as an executable. Download the [latest\nbinary][latest] for your system and put it anywhere in your executable path.\n\n#### GitHub Actions\n\nhub is ready to be used in your [GitHub Actions][] workflows:\n```yaml\nsteps:\n- uses: actions/checkout@v2\n\n- name: List open pull requests\n  run: hub pr list\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nNote that the default `secrets.GITHUB_TOKEN` will only work for API operations\nscoped to the repository that runs this workflow. If you need to interact with other\nrepositories, [generate a Personal Access Token][pat] with at least the `repo` scope\nand add it to your [repository secrets][].\n\n\n[github actions]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions\n[pat]: https://github.com/settings/tokens\n[repository secrets]: https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets\n\n#### Source\n\nPrerequisites for building from source are:\n\n* `make`\n* [Go 1.11+](https://golang.org/doc/install)\n\nClone this repository and run `make install`:\n\n```sh\ngit clone \\\n  --config transfer.fsckobjects=false \\\n  --config receive.fsckobjects=false \\\n  --config fetch.fsckobjects=false \\\n  https://github.com/github/hub.git\n\ncd hub\nmake install prefix=/usr/local\n```\n\nAliasing\n--------\n\nSome hub features feel best when it's aliased as `git`. This is not dangerous; your\n_normal git commands will all work_. hub merely adds some sugar.\n\n`hub alias` displays instructions for the current shell. With the `-s` flag, it\noutputs a script suitable for `eval`.\n\nYou should place this command in your `.bash_profile` or other startup script:\n\n``` sh\neval \"$(hub alias -s)\"\n```\n\n#### PowerShell\n\nIf you're using PowerShell, you can set an alias for `hub` by placing the\nfollowing in your PowerShell profile (usually\n`~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1`):\n\n``` sh\nSet-Alias git hub\n```\n\nA simple way to do this is to run the following from the PowerShell prompt:\n\n``` sh\nAdd-Content $PROFILE \"`nSet-Alias git hub\"\n```\n\nNote: You'll need to restart your PowerShell console in order for the changes to be picked up.\n\nIf your PowerShell profile doesn't exist, you can create it by running the following:\n\n``` sh\nNew-Item -Type file -Force $PROFILE\n```\n\n### Shell tab-completion\n\nhub repository contains [tab-completion scripts](./etc) for bash, zsh and fish.\nThese scripts complement existing completion scripts that ship with git.\n\nMeta\n----\n\n* Bugs: \u003chttps://github.com/github/hub/issues\u003e\n* Authors: \u003chttps://github.com/github/hub/contributors\u003e\n* Our [Code of Conduct](https://github.com/github/hub/blob/master/CODE_OF_CONDUCT.md)\n\n\n[latest]: https://github.com/github/hub/releases/latest\n","funding_links":[],"categories":["Go","HarmonyOS","go","homebrew"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislav%2Fhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmislav%2Fhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislav%2Fhub/lists"}