1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:26:00 +02:00
tldr/pages/common/hub.md
Waldir Pimenta 9a0a0335d6 hub: overhaul the page for improved clarity (#1202)
- make main description and command descriptions more specific
- simplify the fork command description
- simplify the pull-request example (both the command and description) hopefully without sacrificing information
- replace the browse issues example (which opens a page in the web browser) with one create a github remote for the current repo
2016-12-21 23:01:21 +00:00

724 B

hub

A wrapper for git that adds commands for working with github-based projects. The commands can also be used using "git" instead of "hub".

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

hub clone {{repo_name}}

  • Clone another user's repository, using their github username and the repository name:

hub clone {{username}}/{{repo_name}}

  • Create a fork of the current repository (cloned directly from another user) under your github profile:

hub fork

  • Create a pull request of the current branch in the upstream project (after sending the changes to your fork on github):

hub pull-request

  • Upload the current repository to your github account:

hub create