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
free 100$ digital ocean credit