From 5e56f2a88624a341dd50df22f3fb5666c811866a Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Fri, 9 Sep 2016 11:18:38 -0500 Subject: [PATCH 1/3] hub: Add fork and pull-request examples - Examples follow clone examples as a logical sequence - Pull-request example stresses that one must first push to own fork --- pages/common/hub.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/hub.md b/pages/common/hub.md index f98e8f0cb9..0938e1a6f0 100644 --- a/pages/common/hub.md +++ b/pages/common/hub.md @@ -11,6 +11,14 @@ `hub clone {{github_username}}/{{repo_name}}` +- Fork repository cloned from another user (creates a remote named after your GitHub username): + +`hub fork` + +- Create a pull request from your fork: + +`git push {{github_username}} && hub pull-request` + - Open the current project's issues page: `hub browse -- issues` From 6b3bfccdcece26372a66a555ee12374599531482 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Sat, 10 Sep 2016 12:29:39 -0500 Subject: [PATCH 2/3] hub: Improve examples verbosity --- pages/common/hub.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/hub.md b/pages/common/hub.md index 0938e1a6f0..cce181905b 100644 --- a/pages/common/hub.md +++ b/pages/common/hub.md @@ -7,17 +7,17 @@ `hub clone {{repo_name}}` -- Clone another user repository: +- Clone another user's repository: `hub clone {{github_username}}/{{repo_name}}` -- Fork repository cloned from another user (creates a remote named after your GitHub username): +- Fork your own copy of a repository cloned from another user (creates a remote named after your GitHub username): `hub fork` - Create a pull request from your fork: -`git push {{github_username}} && hub pull-request` +`git push {{your_github_username}} {{current_branch}} && hub pull-request` - Open the current project's issues page: From 672addab21252916af96793db79ce5cdb9cd3eeb Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Thu, 22 Sep 2016 16:33:58 -0500 Subject: [PATCH 3/3] hub: Further improve examples verbosity --- pages/common/hub.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/hub.md b/pages/common/hub.md index cce181905b..f18697d7ac 100644 --- a/pages/common/hub.md +++ b/pages/common/hub.md @@ -11,11 +11,11 @@ `hub clone {{github_username}}/{{repo_name}}` -- Fork your own copy of a repository cloned from another user (creates a remote named after your GitHub username): +- 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): `hub fork` -- Create a pull request from your fork: +- Create a pull request from your fork (first pushing the changes to your fork remote, named after your GitHub username): `git push {{your_github_username}} {{current_branch}} && hub pull-request`