-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
- Loading branch information
1 parent
015e62b
commit 4a15348
Showing
9 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# hub branch | ||
|
||
> Create a branch or show current branch. | ||
> See also `git branch`. | ||
- Show the name of the currently active branch: | ||
|
||
`hub branch` | ||
|
||
- Create a new branch: | ||
|
||
`hub branch {{branch_name}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# hub browse | ||
|
||
> Open a GitHub repository in the browser or print the URL. | ||
> More information: <https://cli.github.com/manual/hub_browse>. | ||
- Open the homepage of the current repository in the default web browser: | ||
|
||
`hub browse` | ||
|
||
- Open the homepage of a specific repository in the default web browser: | ||
|
||
`hub browse {{owner}}/{{repository}}` | ||
|
||
- Open the subpage of a specific repository in the default web browser, subpage can be "wiki", "commits", "issues", or other (default: "tree"): | ||
|
||
`hub browse {{owner}}/{{repository}} {{subpage}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# hub ci-status | ||
|
||
> Display status of GitHub checks. | ||
> More information: <https://hub.github.com/hub-ci-status.1.html>. | ||
- Check the CI status for this branch: | ||
|
||
`hub ci-status --verbose` | ||
|
||
- Display status of GitHub checks for a commit: | ||
|
||
`hub ci-status --verbose {{commit_SHA}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# hub clone | ||
|
||
> Clone an existing repository. | ||
> More information: <https://hub.github.com/hub-clone.1.html>. | ||
- Clone an existing repository to current directory (If run into authentication problem, try full ssh path): | ||
|
||
`hub clone {{remote_repository_location}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# hub create | ||
|
||
> Create a new repository on GitHub. | ||
> More information: <https://hub.github.com/hub-create.1.html>. | ||
- Upload the current (local-only) repository to your GitHub account as public: | ||
|
||
`hub create` | ||
|
||
- Create a private repository and open the new repository in a web browser: | ||
|
||
`hub create --private --browse` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# hub delete | ||
|
||
> Delete an existing repository on GitHub. | ||
> More information: <https://hub.github.com/hub-delete.1.html>. | ||
- Delete personal repo on GitHub: | ||
|
||
`hub delete {{repo}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# hub fork | ||
|
||
> Fork the given GitHub repo. Like `git fork` from `git-extras`. | ||
> More information: <https://hub.github.com/hub-fork.1.html>. | ||
- Fork a GitHub repository by its slug: | ||
|
||
`hub fork {{tldr-pages/tldr}}` | ||
|
||
- Fork a GitHub repository by its URL: | ||
|
||
`hub fork {{https://github.com/tldr-pages/tldr}}` | ||
|
||
- Fork current GitHub repository, set remote name to origin: | ||
|
||
`hub fork --remote-name {{origin}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# hub init | ||
|
||
> Initializes a new local git repository. | ||
> More information: <https://hub.github.com/hub-init.1.html>. | ||
- Initialize a new local repository: | ||
|
||
`hub init` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# hub issue | ||
|
||
> Manage Github issues. | ||
> More information: <https://hub.github.com/hub-issue.1.html>. | ||
- List the last 10 issues with the `bug` label: | ||
|
||
`hub issue list --limit {{10}} --labels "{{bug}}" ` | ||
|
||
- Display a specific issue: | ||
|
||
`hub issue show {{issue_number}}` | ||
|
||
- List 10 closed issues assigneed to a specific user: | ||
|
||
`hub issue --state {{closed}} --assignee {{username}} --limit {{10}}` |