# hub

> A command-line tool that makes git easier to use with GitHub

- Type: agent or tool
- Field: Developer Tools
- Repository: https://github.com/mislav/hub
- GitHub stars: 22955
- Licence: MIT
- Language: Go
- Last push: 2024-02-02
- Page: https://imutechz.in/agents/hub-mislav

## What it is
hub is a command-line tool that wraps git to add extra features and commands that make working with GitHub easier. It is aimed at developers who use git and GitHub from the terminal. It works by extending git commands, for example turning a short repository name into a full clone URL, and it can be aliased as git so normal git commands keep working. It can also be used in shell scripts that interact with the GitHub API.

## Features
- Wraps git with extra GitHub-related commands
- Expands short names into full clone URLs
- Can be aliased as git without breaking normal git commands
- Supports SSH protocol via hub.protocol config
- Usable in shell scripts that call the GitHub API
- Ships tab-completion scripts for bash, zsh and fish

## Best for
- Cloning GitHub repositories with short names
- Working with GitHub from the terminal
- Scripting GitHub API interactions
- Using hub inside GitHub Actions workflows

## Pros
- The executable has no dependencies
- Recommended to have git 1.7.3 or newer
- Can be safely aliased as git
- Available through many package managers

## Cons
- Packages other than Homebrew are community-maintained and may not match the latest release
- Building from source requires make and Go 1.11+
- The default GitHub Actions token only works for API operations scoped to the repository running the workflow

## Install
```
brew install hub
```

## Usage
```
hub clone rtomayko/tilt
```

Tags: git, github, command-line, cli, developer-tools, shell-scripting, version-control
