2016-02-14 14:49:56 +00:00
|
|
|
# hub
|
|
|
|
|
2016-12-21 22:55:12 +00:00
|
|
|
> A wrapper for git that adds commands for working with github-based projects.
|
2016-02-14 14:49:56 +00:00
|
|
|
> The commands can also be used using "git" instead of "hub".
|
|
|
|
|
2016-12-21 22:55:12 +00:00
|
|
|
- Clone a repository you own, using just the repository name rather than the full URL:
|
2016-02-14 14:49:56 +00:00
|
|
|
|
2016-02-15 22:12:54 +00:00
|
|
|
`hub clone {{repo_name}}`
|
2016-02-14 14:49:56 +00:00
|
|
|
|
2016-12-21 22:55:12 +00:00
|
|
|
- Clone another user's repository, using their github username and the repository name:
|
2016-02-14 14:49:56 +00:00
|
|
|
|
2016-12-21 22:55:12 +00:00
|
|
|
`hub clone {{username}}/{{repo_name}}`
|
2016-02-14 14:49:56 +00:00
|
|
|
|
2017-01-02 18:36:06 +00:00
|
|
|
- Create a fork of the current repository (cloned from another user) under your github profile:
|
2016-09-09 17:18:38 +01:00
|
|
|
|
|
|
|
`hub fork`
|
|
|
|
|
2017-01-02 18:36:06 +00:00
|
|
|
- Create a PR of the current branch in the original repository (after pushing the branch to github):
|
2016-09-09 17:18:38 +01:00
|
|
|
|
2016-12-21 22:55:12 +00:00
|
|
|
`hub pull-request`
|
2016-09-09 17:18:38 +01:00
|
|
|
|
2017-01-02 18:36:06 +00:00
|
|
|
- Upload the current (local-only) repository to your github account:
|
2016-02-14 14:49:56 +00:00
|
|
|
|
2016-12-21 22:55:12 +00:00
|
|
|
`hub create`
|