hub

hub

TLDR

Clone a repository you own, using just the repository name rather than the full URL

$ hub clone [repo_name]
copy

Clone another user's repository, using their GitHub username and the repository name

$ hub clone [username]/[repo_name]
copy

Create a fork of the current repository (cloned from another user) under your GitHub profile

$ hub fork
copy

Push the current local branch to GitHub and create a PR for it in the original repository

$ hub push [remote_name] && hub pull-request
copy

Create a PR of the current (already pushed) branch, reusing the message from the first commit

$ hub pull-request --no-edit
copy

Create a new branch with the contents of a pull request and switch to it

$ hub pr checkout [pr_number]
copy

Upload the current (local-only) repository to your GitHub account

$ hub create
copy

Copied to clipboard
Dodo Farming