Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github
hub
提交
673527eb
H
hub
项目概览
github
/
hub
9 个月 前同步成功
通知
3
Star
22523
Fork
2406
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
673527eb
编写于
7月 24, 2010
作者:
C
Chris Wanstrath
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
上级
143c7316
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
164 addition
and
85 deletion
+164
-85
man/hub.1
man/hub.1
+2
-2
man/hub.1.html
man/hub.1.html
+162
-83
未找到文件。
man/hub.1
浏览文件 @
673527eb
.\" generated with Ronn/v0.5
.\" http://github.com/rtomayko/ronn/
.
.TH "HUB" "1" "
April
2010" "DEFUNKT" "Git Manual"
.TH "HUB" "1" "
June
2010" "DEFUNKT" "Git Manual"
.
.SH "NAME"
\fBhub\fR \-
\-
git + hub = github
\fBhub\fR \- git + hub = github
.
.SH "SYNOPSIS"
\fBhub\fR \fICOMMAND\fR \fIOPTIONS\fR
...
...
man/hub.1.html
浏览文件 @
673527eb
...
...
@@ -2,70 +2,149 @@
<html>
<head>
<meta
http-equiv=
'content-type'
value=
'text/html;charset=utf8'
>
<meta
name=
'generator'
value=
'Ronn/v0.5'
>
<title>
hub(1) -- git + hub = github
</title>
<style
type=
'text/css'
>
body
{
margin
:
0
}
#man
,
#man
code
,
#man
pre
,
#man
tt
,
#man
kbd
,
#man
samp
{
font-family
:
consolas
,
monospace
;
font-size
:
16px
;
line-height
:
1.3
;
color
:
#343331
;
background
:
#fff
;
}
#man
{
max-width
:
89ex
;
text-align
:
justify
;
margin
:
0
25px
25px
25px
}
#man
h1
,
#man
h2
,
#man
h3
{
color
:
#232221
;
clear
:
left
}
#man
h1
{
font-size
:
28px
;
margin
:
15px
0
30px
0
;
text-align
:
center
}
#man
h2
{
font-size
:
18px
;
margin-bottom
:
0
;
margin-top
:
10px
;
line-height
:
1.3
;
}
#man
h3
{
font-size
:
16px
;
margin
:
0
0
0
4ex
;
}
#man
p
,
#man
ul
,
#man
ol
,
#man
dl
,
#man
pre
{
margin
:
0
0
18px
0
;
}
#man
pre
{
color
:
#333231
;
<meta
name=
'generator'
value=
'Ronn/v0.5 (http://github.com/rtomayko/ronn)'
>
<title>
hub(1) - git + hub = github
</title>
<style
type=
'text/css'
media=
'all'
>
/* STRUCTURE, INDENT, MARGINS */
body
{
margin
:
0
}
#man
{
max-width
:
92ex
;
padding
:
0
2ex
1ex
2ex
}
#man
p
,
#man
pre
,
#man
ul
,
#man
ol
,
#man
dl
{
margin
:
0
0
20px
0
}
#man
h2
{
margin
:
10px
0
0
0
}
#man
>
p
,
#man
>
pre
,
#man
>
ul
,
#man
>
ol
,
#man
>
dl
{
margin-left
:
8ex
}
#man
h3
{
margin
:
0
0
0
4ex
}
#man
dt
{
margin
:
0
;
clear
:
left
}
#man
dt
.flush
{
float
:
left
;
width
:
8ex
}
#man
dd
{
margin
:
0
0
0
9ex
}
#man
h1
,
#man
h2
,
#man
h3
,
#man
h4
{
clear
:
left
}
#man
pre
{
margin-bottom
:
20px
}
#man
pre
+
h2
,
#man
pre
+
h3
{
margin-top
:
22px
}
#man
h2
+
pre
,
#man
h3
+
pre
{
margin-top
:
5px
}
#man
img
{
display
:
block
;
margin
:
auto
}
#man
h1
.man-title
{
display
:
none
}
/* FONTS */
#man
,
#man
code
,
#man
pre
,
#man
tt
,
#man
kbd
,
#man
samp
,
#man
h3
,
#man
h4
{
font-family
:
monospace
;
font-size
:
14px
;
line-height
:
1.42857142857143
;
}
#man
h2
,
#man
ol
.man
,
#man
.man-navigation
a
{
font-size
:
16px
;
line-height
:
1.25
}
#man
h1
{
font-size
:
20px
;
line-height
:
2
;
}
/* TEXT STYLES */
#man
{
text-align
:
justify
;
background
:
#fff
;
}
#man
,
#man
code
,
#man
pre
,
#man
pre
code
,
#man
tt
,
#man
kbd
,
#man
samp
{
color
:
#131211
}
#man
h1
,
#man
h2
,
#man
h3
,
#man
h4
{
color
:
#030201
}
#man
ol
.man
,
#man
ol
.man
li
{
color
:
#636261
}
#man
code
,
#man
strong
,
#man
b
{
font-weight
:
bold
;
color
:
#131211
;
}
#man
em
,
#man
var
,
#man
u
{
font-style
:
italic
;
color
:
#434241
;
text-decoration
:
none
;
}
#man
pre
{
background
:
#edeceb
;
padding
:
5px
7px
;
margin
:
0px
0
20px
0
;
border-left
:
2ex
solid
#ddd
}
#man
pre
+
h2
,
#man
pre
+
h3
{
margin-top
:
22px
;
}
#man
h2
+
pre
,
#man
h3
+
pre
{
margin-top
:
5px
;
}
#man
>
p
,
#man
>
ul
,
#man
>
ol
,
#man
>
dl
,
#man
>
pre
{
margin-left
:
8ex
;
}
#man
dt
{
margin
:
0
;
clear
:
left
}
#man
dt
.flush
{
float
:
left
;
width
:
8ex
}
#man
dd
{
margin
:
0
0
0
9ex
}
#man
code
,
#man
strong
,
#man
b
{
font-weight
:
bold
;
color
:
#131211
;
}
#man
pre
code
{
font-weight
:
normal
;
color
:
#232221
;
background
:
inherit
}
#man
em
,
var
,
u
{
font-style
:
normal
;
color
:
#333231
;
border-bottom
:
1px
solid
#999
;
}
#man
h1
.man-title
{
display
:
none
;
}
#man
ol
.man
,
#man
ol
.man
li
{
margin
:
2px
0
10px
0
;
padding
:
0
;
float
:
left
;
width
:
33%
;
list-style-type
:
none
;
text-transform
:
uppercase
;
font-size
:
18px
;
color
:
#999
;
letter-spacing
:
1px
;}
#man
ol
.man
{
width
:
100%
;
}
#man
ol
.man
li
.tl
{
text-align
:
left
}
#man
ol
.man
li
.tc
{
text-align
:
center
;
letter-spacing
:
4px
}
#man
ol
.man
li
.tr
{
text-align
:
right
}
#man
ol
.man
a
{
color
:
#999
}
#man
ol
.man
a
:hover
{
color
:
#333231
}
padding
:
5px
1ex
;
border-left
:
1ex
solid
#ddd
;
}
#man
pre
code
{
font-weight
:
normal
;
background
:
inherit
;
}
/* DOCUMENT HEADER AND FOOTER AREAS */
#man
ol
.man
,
#man
ol
.man
li
{
margin
:
3px
0
10px
0
;
padding
:
0
;
float
:
left
;
width
:
33%
;
list-style-type
:
none
;
text-transform
:
uppercase
;
color
:
#999
;
letter-spacing
:
1px
;
}
#man
ol
.man
{
width
:
100%
}
#man
ol
.man
li
.tl
{
text-align
:
left
}
#man
ol
.man
li
.tc
{
text-align
:
center
;
letter-spacing
:
4px
}
#man
ol
.man
li
.tr
{
text-align
:
right
;
float
:
right
}
/* SECTION TOC NAVIGATION */
#man
div
.man-navigation
{
position
:
fixed
;
top
:
0
;
left
:
106ex
;
height
:
100%
;
width
:
100%
;
padding
:
1ex
0
0
2ex
;
border-left
:
0.25ex
solid
#DCDCDC
;
background-color
:
#F5F5F5
;
}
#man
div
.man-navigation
a
{
display
:
block
;
margin-bottom
:
1.5ex
}
</style>
<style
type=
'text/css'
media=
'print'
>
#man
{
max-width
:
none
}
#man
div
.man-navigation
{
display
:
none
}
#man
a
[
href
]
:not
([
href
^=
"#"
])
:not
([
data-bare-link
])
:after
{
content
:
" "
attr
(
href
);
}
</style>
</head>
<body>
<div
id=
'man'
>
<body
id=
'manpage'
>
<div
id=
'man'
>
<div
class=
'man-navigation'
>
<a
href=
"#NAME"
>
NAME
</a>
<a
href=
"#SYNOPSIS"
>
SYNOPSIS
</a>
<a
href=
"#DESCRIPTION"
>
DESCRIPTION
</a>
<a
href=
"#CONFIGURATION"
>
CONFIGURATION
</a>
<a
href=
"#EXAMPLES"
>
EXAMPLES
</a>
<a
href=
"#BUGS"
>
BUGS
</a>
<a
href=
"#AUTHOR"
>
AUTHOR
</a>
<a
href=
"#SEE-ALSO"
>
SEE ALSO
</a>
</div>
<h1
class=
'man-title'
>
hub(1)
</h1>
<h1
class=
'man-title'
>
hub(1)
</h1>
<ol
class=
'head man
'
>
<li
class=
'tl'
>
hub(1)
</li>
<li
class=
'tc'
>
Git Manual
</li>
<li
class=
'tr'
>
hub(1)
</li>
</ol>
<ol
class=
'man head
'
>
<li
class=
'tl'
>
hub(1)
</li>
<li
class=
'tc'
>
Git Manual
</li>
<li
class=
'tr'
>
hub(1)
</li>
</ol>
<h2
id=
'NAME'
>
NAME
</h2>
<p><code>
hub
</code>
-
-
git + hub = github
</p>
<h2
id=
'NAME'
>
NAME
</h2>
<p><code>
hub
</code>
- git + hub = github
</p>
<h2>
SYNOPSIS
</h2>
<h2
id=
"SYNOPSIS"
>
SYNOPSIS
</h2>
<p><code>
hub
</code>
<var>
COMMAND
</var>
<var>
OPTIONS
</var><br
/>
<code>
hub alias
</code>
[
<code>
-s
</code>
]
<var>
SHELL
</var></p>
...
...
@@ -81,7 +160,7 @@
<code>
git submodule add
</code>
[
<code>
-p
</code>
]
<var>
OPTIONS
</var>
[
<var>
USER
</var>
/]
<var>
REPOSITORY
</var>
<var>
DIRECTORY
</var><br
/>
<code>
git fork
</code>
[
<code>
--no-remote
</code>
]
</p>
<h2>
DESCRIPTION
</h2>
<h2
id=
"DESCRIPTION"
>
DESCRIPTION
</h2>
<p><code>
hub
</code>
enhances various
<code>
git
</code>
commands with GitHub remote expansion. The
alias command displays information on configuring your environment:
</p>
...
...
@@ -132,7 +211,7 @@ be set (see CONFIGURATION).</p></dd>
</dl>
<h2>
CONFIGURATION
</h2>
<h2
id=
"CONFIGURATION"
>
CONFIGURATION
</h2>
<p>
Use git-config(1) to display the currently configured GitHub username:
</p>
...
...
@@ -145,7 +224,7 @@ be set (see CONFIGURATION).</p></dd>
$ git config --global github.token
<
token>
</code></pre>
<p>
See
<a
href=
"http://github.com/guides/local-github-config"
>
http://github.com/guides/local-github-config
</a>
for more
<p>
See
<a
href=
"http://github.com/guides/local-github-config"
data-bare-link=
"true"
>
http://github.com/guides/local-github-config
</a>
for more
information.
</p>
<p>
You can also tell
<code>
hub
</code>
to use
<code>
http://
</code>
rather than
<code>
git://
</code>
when
...
...
@@ -154,9 +233,9 @@ cloning:</p>
<pre><code>
$ git config --global --bool hub.http-clone true
</code></pre>
<h2>
EXAMPLES
</h2>
<h2
id=
"EXAMPLES"
>
EXAMPLES
</h2>
<h3>
git clone
</h3>
<h3
id=
"git-clone"
>
git clone
</h3>
<pre><code>
$ git clone schacon/ticgit
>
git clone git://github.com/schacon/ticgit.git
...
...
@@ -171,7 +250,7 @@ $ git clone -p resque
>
git clone git@github.com:YOUR_USER/resque.git
</code></pre>
<h3>
git remote add
</h3>
<h3
id=
"git-remote-add"
>
git remote add
</h3>
<pre><code>
$ git remote add rtomayko
>
git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git
...
...
@@ -183,7 +262,7 @@ $ git remote add origin
>
git remote add origin git://github.com/YOUR_USER/CURRENT_REPO.git
</code></pre>
<h3>
git fetch
</h3>
<h3
id=
"git-fetch"
>
git fetch
</h3>
<pre><code>
$ git fetch mislav
>
git remote add mislav git://github.com/mislav/REPO.git
...
...
@@ -195,7 +274,7 @@ $ git fetch mislav,xoebus
>
git fetch --multiple mislav xoebus
</code></pre>
<h3>
git cherry-pick
</h3>
<h3
id=
"git-cherry-pick"
>
git cherry-pick
</h3>
<pre><code>
$ git cherry-pick http://github.com/mislav/REPO/commit/SHA
>
git remote add -f mislav git://github.com/mislav/REPO.git
...
...
@@ -210,21 +289,21 @@ $ git cherry-pick mislav@SHA
>
git cherry-pick SHA
</code></pre>
<h3>
git fork
</h3>
<h3
id=
"git-fork"
>
git fork
</h3>
<pre><code>
$ git fork
... hardcore forking action ...
>
git remote add YOUR_USER git@github.com:YOUR_USER/CURRENT_REPO.git
</code></pre>
<h3>
git init
</h3>
<h3
id=
"git-init"
>
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>
<h3
id=
"git-push"
>
git push
</h3>
<pre><code>
$ git push origin,staging,qa bert_timeout
>
git push origin bert_timeout
...
...
@@ -232,7 +311,7 @@ $ git cherry-pick mislav@SHA
>
git push qa bert_timeout
</code></pre>
<h3>
git browse
</h3>
<h3
id=
"git-browse"
>
git browse
</h3>
<pre><code>
$ git browse
>
open http://github.com/CURRENT_REPO
...
...
@@ -256,7 +335,7 @@ $ git browse -p resque
>
open https://github.com/YOUR_USER/resque
</code></pre>
<h3>
git compare
</h3>
<h3
id=
"git-compare"
>
git compare
</h3>
<pre><code>
$ git compare refactor
>
open http://github.com/CURRENT_REPO/compare/refactor
...
...
@@ -271,7 +350,7 @@ $ git compare other-user patch
>
open http://github.com/other-user/REPO/compare/patch
</code></pre>
<h3>
git help
</h3>
<h3
id=
"git-help"
>
git help
</h3>
<pre><code>
$ git help
>
(improved git help)
...
...
@@ -279,27 +358,27 @@ $ git help hub
>
(hub man page)
</code></pre>
<h2>
BUGS
</h2>
<h2
id=
"BUGS"
>
BUGS
</h2>
<p><a
href=
"http://github.com/defunkt/hub/issues"
>
http://github.com/defunkt/hub/issues
</a></p>
<p><a
href=
"http://github.com/defunkt/hub/issues"
data-bare-link=
"true"
>
http://github.com/defunkt/hub/issues
</a></p>
<h2>
AUTHOR
</h2>
<h2
id=
"AUTHOR"
>
AUTHOR
</h2>
<p>
Chris Wanstrath :: chris@ozmm.org :: @defunkt
</p>
<h2>
SEE ALSO
</h2>
<h2
id=
"SEE-ALSO"
>
SEE ALSO
</h2>
<p>
git(1), git-clone(1), git-remote(1), git-init(1),
<a
href=
"http://github.com"
>
http://github.com
</a>
,
<a
href=
"http://github.com/defunkt/hub"
>
http://github.com/defunkt/hub
</a></p>
<a
href=
"http://github.com"
data-bare-link=
"true"
>
http://github.com
</a>
,
<a
href=
"http://github.com/defunkt/hub"
data-bare-link=
"true"
>
http://github.com/defunkt/hub
</a></p>
<ol
class=
'foot man
'
>
<li
class=
'tl'
>
DEFUNKT
</li>
<li
class=
'tc'
>
April
2010
</li>
<li
class=
'tr'
>
hub(1)
</li>
</ol>
<ol
class=
'man foot
'
>
<li
class=
'tl'
>
DEFUNKT
</li>
<li
class=
'tc'
>
June
2010
</li>
<li
class=
'tr'
>
hub(1)
</li>
</ol>
</div>
</div>
</body>
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录