diff --git a/man/git-fork.1 b/man/git-fork.1 index e9e80430a..e3c40685e 100644 --- a/man/git-fork.1 +++ b/man/git-fork.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-FORK" "1" "July 2016" "" "Git Extras" +.TH "GIT\-FORK" "1" "August 2016" "" "Git Extras" . .SH "NAME" \fBgit\-fork\fR \- Fork a repo on github @@ -37,6 +37,9 @@ adds the forked repo as a remote called \fBorigin\fR . .IP "" 0 . +.P +Remotes will use ssh if you have it configured with GitHub, if not, https will be used\. +. .SH "EXAMPLE" Fork expect\.js: . @@ -74,10 +77,10 @@ $ \.\. $ cd expect\.js && git remote \-v - origin https://github\.com//expect\.js (fetch) - origin https://github\.com//expect\.js (push) - upstream https://github\.com/LearnBoost/expect\.js (fetch) - upstream https://github\.com/LearnBoost/expect\.js (push) + origin git@github\.com:/expect\.js (fetch) + origin git@github\.com:/expect\.js (push) + upstream git@github\.com:LearnBoost/expect\.js (fetch) + upstream git@github\.com:LearnBoost/expect\.js (push) . .fi . diff --git a/man/git-fork.html b/man/git-fork.html index 268c6c071..06b5b4443 100644 --- a/man/git-fork.html +++ b/man/git-fork.html @@ -97,6 +97,8 @@

DESCRIPTION

+

Remotes will use ssh if you have it configured with GitHub, if not, https will be used.

+

EXAMPLE

Fork expect.js:

@@ -115,10 +117,10 @@

EXAMPLE

$ cd expect.js && git remote -v - origin https://github.com/<user>/expect.js (fetch) - origin https://github.com/<user>/expect.js (push) - upstream https://github.com/LearnBoost/expect.js (fetch) - upstream https://github.com/LearnBoost/expect.js (push) + origin git@github.com:<user>/expect.js (fetch) + origin git@github.com:<user>/expect.js (push) + upstream git@github.com:LearnBoost/expect.js (fetch) + upstream git@github.com:LearnBoost/expect.js (push)

If the current dir is a clone of expect.js, this has the same effect:

@@ -128,7 +130,7 @@

EXAMPLE

AUTHOR

-

Written by Andrew Griffiths <mail@andrewgriffithsonline.com>

+

Written by Andrew Griffiths <mail@andrewgriffithsonline.com>

REPORTING BUGS

@@ -141,7 +143,7 @@

SEE ALSO

  1. -
  2. July 2016
  3. +
  4. August 2016
  5. git-fork(1)
diff --git a/man/git-fork.md b/man/git-fork.md index e651b2bba..890c5d963 100644 --- a/man/git-fork.md +++ b/man/git-fork.md @@ -16,9 +16,11 @@ git-fork(1) -- Fork a repo on github If a url is not given and the current dir is a github repo, fork the repo. 1. forks the current repo - 3. rename the `origin` remote repo to `upstream` + 2. rename the `origin` remote repo to `upstream` 3. adds the forked repo as a remote called `origin` + Remotes will use ssh if you have it configured with GitHub, if not, https will be used. + ## EXAMPLE Fork expect.js: @@ -35,10 +37,10 @@ git-fork(1) -- Fork a repo on github $ cd expect.js && git remote -v - origin https://github.com//expect.js (fetch) - origin https://github.com//expect.js (push) - upstream https://github.com/LearnBoost/expect.js (fetch) - upstream https://github.com/LearnBoost/expect.js (push) + origin git@github.com:/expect.js (fetch) + origin git@github.com:/expect.js (push) + upstream git@github.com:LearnBoost/expect.js (fetch) + upstream git@github.com:LearnBoost/expect.js (push) If the current dir is a clone of expect.js, this has the same effect: