This commit is contained in:
Chris Wanstrath 2009-12-24 10:33:26 -08:00
Родитель 624662f14d
Коммит a36bd94024
3 изменённых файлов: 155 добавлений и 0 удалений

Просмотреть файл

@ -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
&gt; git clone git://github.com/schacon/ticgit.git
$ git clone -p schacon/ticgit
&gt; git clone git@github.com:schacon/ticgit.git
$ git clone resque
&gt; git clone git://github.com/YOUR_USER/resque.git
$ git clone -p resque
&gt; git clone git@github.com:YOUR_USER/resque.git
</code></pre>
<h3>git remote add</h3>
<pre><code>$ git remote add rtomayko
&gt; git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git
$ git remote add -p rtomayko
&gt; git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
</code></pre>
<h3>git init</h3>
<pre><code>$ git init -g
&gt; git init
&gt; 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
&gt; git push origin bert_timeout
&gt; git push staging bert_timeout
&gt; git push qa bert_timeout
</code></pre>
<h3>git help</h3>
<pre><code>$ git help
&gt; (improved git help)
$ git help hub
&gt; (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>