diff --git a/pages/common/hub-branch.md b/pages/common/hub-branch.md new file mode 100644 index 0000000000..fbed103cf9 --- /dev/null +++ b/pages/common/hub-branch.md @@ -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}}` diff --git a/pages/common/hub-browse.md b/pages/common/hub-browse.md new file mode 100644 index 0000000000..4f830440d0 --- /dev/null +++ b/pages/common/hub-browse.md @@ -0,0 +1,16 @@ +# hub browse + +> Open a GitHub repository in the browser or print the URL. +> More information: . + +- 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}}` diff --git a/pages/common/hub-ci-status.md b/pages/common/hub-ci-status.md new file mode 100644 index 0000000000..6952e6e40b --- /dev/null +++ b/pages/common/hub-ci-status.md @@ -0,0 +1,12 @@ +# hub ci-status + +> Display status of GitHub checks. +> More information: . + +- 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}}` diff --git a/pages/common/hub-clone.md b/pages/common/hub-clone.md new file mode 100644 index 0000000000..021055c7c9 --- /dev/null +++ b/pages/common/hub-clone.md @@ -0,0 +1,8 @@ +# hub clone + +> Clone an existing repository. +> More information: . + +- Clone an existing repository to current directory (If run into authentication problem, try full ssh path): + +`hub clone {{remote_repository_location}}` diff --git a/pages/common/hub-create.md b/pages/common/hub-create.md new file mode 100644 index 0000000000..47d0403a6e --- /dev/null +++ b/pages/common/hub-create.md @@ -0,0 +1,12 @@ +# hub create + +> Create a new repository on GitHub. +> More information: . + +- 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` diff --git a/pages/common/hub-delete.md b/pages/common/hub-delete.md new file mode 100644 index 0000000000..26da0e1703 --- /dev/null +++ b/pages/common/hub-delete.md @@ -0,0 +1,8 @@ +# hub delete + +> Delete an existing repository on GitHub. +> More information: . + +- Delete personal repo on GitHub: + +`hub delete {{repo}}` diff --git a/pages/common/hub-fork.md b/pages/common/hub-fork.md new file mode 100644 index 0000000000..28f8aa83d7 --- /dev/null +++ b/pages/common/hub-fork.md @@ -0,0 +1,16 @@ +# hub fork + +> Fork the given GitHub repo. Like `git fork` from `git-extras`. +> More information: . + +- 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}}` diff --git a/pages/common/hub-init.md b/pages/common/hub-init.md new file mode 100644 index 0000000000..03fb6abc5f --- /dev/null +++ b/pages/common/hub-init.md @@ -0,0 +1,8 @@ +# hub init + +> Initializes a new local git repository. +> More information: . + +- Initialize a new local repository: + +`hub init` diff --git a/pages/common/hub-issue.md b/pages/common/hub-issue.md new file mode 100644 index 0000000000..cd07128e43 --- /dev/null +++ b/pages/common/hub-issue.md @@ -0,0 +1,16 @@ +# hub issue + +> Manage Github issues. +> More information: . + +- 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}}`