зеркало из https://github.com/mislav/hub.git
add EXAMPLES to man page
This commit is contained in:
Родитель
624662f14d
Коммит
a36bd94024
62
man/hub.1
62
man/hub.1
|
@ -80,6 +80,68 @@ $ git config \-\-global github.user <username>
|
|||
.P
|
||||
See \fIhttp://github.com/guides/local\-github\-config\fR for more information.
|
||||
.
|
||||
.SH "EXAMPLES"
|
||||
.
|
||||
.SS "git clone"
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git clone schacon/ticgit
|
||||
> git clone git://github.com/schacon/ticgit.git
|
||||
$ git clone \-p schacon/ticgit
|
||||
> git clone git@github.com:schacon/ticgit.git
|
||||
|
||||
$ git clone resque
|
||||
> git clone git://github.com/YOUR_USER/resque.git
|
||||
|
||||
$ git clone \-p resque
|
||||
> git clone git@github.com:YOUR_USER/resque.git
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.SS "git remote add"
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git remote add rtomayko
|
||||
> git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git
|
||||
$ git remote add \-p rtomayko
|
||||
> git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.SS "git init"
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git init \-g
|
||||
> git init
|
||||
> git remote add origin git@github.com:YOUR_USER/REPO.git
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.SS "git push"
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git push origin,staging,qa bert_timeout
|
||||
> git push origin bert_timeout
|
||||
> git push staging bert_timeout
|
||||
> git push qa bert_timeout
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.SS "git help"
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git help
|
||||
> (improved git help)
|
||||
$ git help hub
|
||||
> (hub man page)
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.SH "BUGS"
|
||||
\fIhttp://github.com/defunkt/hub/issues\fR
|
||||
.
|
||||
|
|
|
@ -136,6 +136,55 @@ multiple <code>git push</code> commands.</p></dd>
|
|||
|
||||
<p>See <a href="http://github.com/guides/local-github-config">http://github.com/guides/local-github-config</a> for more information.</p>
|
||||
|
||||
<h2>EXAMPLES</h2>
|
||||
|
||||
<h3>git clone</h3>
|
||||
|
||||
<pre><code>$ git clone schacon/ticgit
|
||||
> git clone git://github.com/schacon/ticgit.git
|
||||
|
||||
$ git clone -p schacon/ticgit
|
||||
> git clone git@github.com:schacon/ticgit.git
|
||||
|
||||
$ git clone resque
|
||||
> git clone git://github.com/YOUR_USER/resque.git
|
||||
|
||||
$ git clone -p resque
|
||||
> git clone git@github.com:YOUR_USER/resque.git
|
||||
</code></pre>
|
||||
|
||||
<h3>git remote add</h3>
|
||||
|
||||
<pre><code>$ git remote add rtomayko
|
||||
> git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git
|
||||
|
||||
$ git remote add -p rtomayko
|
||||
> git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
|
||||
</code></pre>
|
||||
|
||||
<h3>git init</h3>
|
||||
|
||||
<pre><code>$ git init -g
|
||||
> git init
|
||||
> git remote add origin git@github.com:YOUR_USER/REPO.git
|
||||
</code></pre>
|
||||
|
||||
<h3>git push</h3>
|
||||
|
||||
<pre><code>$ git push origin,staging,qa bert_timeout
|
||||
> git push origin bert_timeout
|
||||
> git push staging bert_timeout
|
||||
> git push qa bert_timeout
|
||||
</code></pre>
|
||||
|
||||
<h3>git help</h3>
|
||||
|
||||
<pre><code>$ git help
|
||||
> (improved git help)
|
||||
$ git help hub
|
||||
> (hub man page)
|
||||
</code></pre>
|
||||
|
||||
<h2>BUGS</h2>
|
||||
|
||||
<p><a href="http://github.com/defunkt/hub/issues">http://github.com/defunkt/hub/issues</a></p>
|
||||
|
|
|
@ -59,6 +59,50 @@ Or, set the GitHub username with:
|
|||
|
||||
See <http://github.com/guides/local-github-config> for more information.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### git clone
|
||||
|
||||
$ git clone schacon/ticgit
|
||||
> git clone git://github.com/schacon/ticgit.git
|
||||
|
||||
$ git clone -p schacon/ticgit
|
||||
> git clone git@github.com:schacon/ticgit.git
|
||||
|
||||
$ git clone resque
|
||||
> git clone git://github.com/YOUR_USER/resque.git
|
||||
|
||||
$ git clone -p resque
|
||||
> git clone git@github.com:YOUR_USER/resque.git
|
||||
|
||||
### git remote add
|
||||
|
||||
$ git remote add rtomayko
|
||||
> git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git
|
||||
|
||||
$ git remote add -p rtomayko
|
||||
> git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
|
||||
|
||||
### git init
|
||||
|
||||
$ git init -g
|
||||
> git init
|
||||
> git remote add origin git@github.com:YOUR_USER/REPO.git
|
||||
|
||||
### git push
|
||||
|
||||
$ git push origin,staging,qa bert_timeout
|
||||
> git push origin bert_timeout
|
||||
> git push staging bert_timeout
|
||||
> git push qa bert_timeout
|
||||
|
||||
### git help
|
||||
|
||||
$ git help
|
||||
> (improved git help)
|
||||
$ git help hub
|
||||
> (hub man page)
|
||||
|
||||
## BUGS
|
||||
|
||||
<http://github.com/defunkt/hub/issues>
|
||||
|
|
Загрузка…
Ссылка в новой задаче