2016-02-14 14:49:56 +00:00
# hub
> A command-line wrapper for git that makes you better at GitHub.
> The commands can also be used using "git" instead of "hub".
- Clone a repository you own:
2016-02-15 22:12:54 +00:00
`hub clone {{repo_name}}`
2016-02-14 14:49:56 +00:00
2016-09-10 18:29:39 +01:00
- Clone another user's repository:
2016-02-14 14:49:56 +00:00
2016-02-15 22:12:54 +00:00
`hub clone {{github_username}}/{{repo_name}}`
2016-02-14 14:49:56 +00:00
2016-09-22 22:33:58 +01:00
- Fork your own copy of a repository cloned from another user (must be in the cloned repository folder, creates a remote named after your GitHub username):
2016-09-09 17:18:38 +01:00
`hub fork`
2016-09-22 22:33:58 +01:00
- Create a pull request from your fork (first pushing the changes to your fork remote, named after your GitHub username):
2016-09-09 17:18:38 +01:00
2016-09-10 18:29:39 +01:00
`git push {{your_github_username}} {{current_branch}} && hub pull-request`
2016-09-09 17:18:38 +01:00
2016-02-14 14:49:56 +00:00
- Open the current project's issues page:
`hub browse -- issues`