mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 23:46:24 -04:00
Update git-fork man page
This commit is contained in:
parent
ca78ac71ba
commit
93ae8fd81e
|
|
@ -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 @@ $ \.\.<forks into your github profile and clones repo locally to expect\.js dir>
|
|||
|
||||
$ 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)
|
||||
.
|
||||
.fi
|
||||
.
|
||||
|
|
|
|||
|
|
@ -97,6 +97,8 @@
|
|||
</ol>
|
||||
|
||||
|
||||
<p> Remotes will use ssh if you have it configured with GitHub, if not, https will be used.</p>
|
||||
|
||||
<h2 id="EXAMPLE">EXAMPLE</h2>
|
||||
|
||||
<p> Fork expect.js:</p>
|
||||
|
|
@ -115,10 +117,10 @@
|
|||
|
||||
$ 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)
|
||||
</code></pre>
|
||||
|
||||
<p> If the current dir is a clone of expect.js, this has the same effect:</p>
|
||||
|
|
@ -128,7 +130,7 @@ $ cd expect.js && git remote -v
|
|||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Andrew Griffiths <<a href="mailto:mail@andrewgriffithsonline.com" data-bare-link="true">mail@andrewgriffithsonline.com</a>></p>
|
||||
<p>Written by Andrew Griffiths <<a href="mailto:mail@andrewgriffithsonline.com" data-bare-link="true">mail@andrewgriffithsonline.com</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -141,7 +143,7 @@ $ cd expect.js && git remote -v
|
|||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>July 2016</li>
|
||||
<li class='tc'>August 2016</li>
|
||||
<li class='tr'>git-fork(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
|||
|
|
@ -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/<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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue