forked from gotgit/gotgithub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
317 lines (302 loc) · 20.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GotGitHub — GotGitHub</title>
<link rel="stylesheet" href="static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="static/pygments.css" type="text/css" />
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" />
<link rel="stylesheet" href="/stylesheets/syntax.css" type="text/css" />
<link rel="stylesheet" href="static/worldhello.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '0.9',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<script type="text/javascript" src="static/translations.js"></script>
<link rel="top" title="GotGitHub" href="#" />
<link rel="next" title="1. 探索GitHub" href="01-explore-github/index.html" />
</head>
<body>
<div id='header'>
<h1><a href='/'>World Hello</a></h1>
<div id='menu'>
<ul>
<li><a href='/' id='home-link' title='Home'>首页</a></li>
<li><a href='/blog.html' id='blog-link' title='Blog'>博客</a></li>
<li><a href='/doc/' id='docs-link' title='Docs'>文章</a></li>
<li><a href='/about.html' id='about-link' title='About'>关于</a></li>
<li><a href='http://github.com/gotgit' target='_blank' title='GitHub' rel='me' id='github-link'>GitHub</a></li>
<li><a href='http://weibo.com/gotgit' title='微博' target='_blank' id='weibo-link'>微博</a></li>
</ul>
</div>
</div>
<div class="related">
<h3>导航</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="总目录"
accesskey="I">索引</a></li>
<li class="right" >
<a href="01-explore-github/index.html" title="1. 探索GitHub"
accesskey="N">下一页</a> |</li>
<li><a href="#">GotGitHub</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="#">內容目录</a></h3>
<ul>
<li><a class="reference internal" href="#">GotGitHub</a><ul>
<li><a class="reference internal" href="#id1">前言</a></li>
<li><a class="reference internal" href="#id6">目录</a><ul>
</ul>
</li>
<li><a class="reference internal" href="#id7">贡献者列表</a></li>
</ul>
</li>
</ul>
<h4>下一个主题</h4>
<p class="topless"><a href="01-explore-github/index.html"
title="下一章">1. 探索GitHub</a></p>
<h3>本页</h3>
<ul class="this-page-menu">
<li><a href="sources/index.txt"
rel="nofollow">显示源代码</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>快速搜索</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="搜索" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
输入相关的模块,术语,类或者函数名称进行搜索
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="gotgithub">
<h1>GotGitHub<a class="headerlink" href="#gotgithub" title="永久链接至标题">¶</a></h1>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Author:</th><td class="field-body">Jiang Xin</td>
</tr>
<tr class="field-even field"><th class="field-name">Version:</th><td class="field-body">v0.9.1-13-g5075479</td>
</tr>
<tr class="field-odd field"><th class="field-name">Copyright:</th><td class="field-body"><a class="reference external" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons BY-NC-SA</a></td>
</tr>
</tbody>
</table>
<div class="section" id="id1">
<h2>前言<a class="headerlink" href="#id1" title="永久链接至标题">¶</a></h2>
<p>动笔写GitHub不是因为我对其了解,恰恰是对其太不了解。</p>
<p>在我的《Git权威指南》 <a class="footnote-reference" href="#id4" id="id2">[1]</a> 一书中,涉及到GitHub的只有区区三页纸,这显然回答不了读者对于GitHub的诸多疑问。
记得在《Git权威指南》刚刚完稿之际,机械工业出版社华章公司的杨福川编辑就鼓动我写一本关于GitHub的书,我用了好多理由推辞了。
头条理由就是我真的累着了。在每一章节开始动笔之时,都好像是坐在了中学语文考试的考堂上写作文,时间快到了可仍然动不了笔,
再写一本书无疑要重复这一痛苦的经历。
第二个理由是我更喜欢编程,而不是写文档,尤其写GitHub会有大量截图、图像处理的琐碎工作。
第三个理由彻底让编辑投降,那就是GitHub是一个国外网站,也许书一出,【此句已被原作者删除】。</p>
<p>让我最终决定动笔,是源于CSDN蒋总在美国拜访GitHub总部后告诉我的一些见闻,我对GitHub如此成功运作产生了兴趣,于是开始研究GitHub的博客,愈发发现GitHub是一群有趣的人在做的有趣的事,如果只把GitHub当作一个Git服务器,实在是暴殄天物。GitHub已经并将继续获得成功,若真能凭借此书把GitHub尽量全面地展现,让每一个Git使用者用好GitHub也是一件幸事。</p>
<p>这本书将采用GitHub的方式进行撰写和发布 <a class="footnote-reference" href="#id5" id="id3">[2]</a> ,任何人都可以看到本书(包括源码),更可以用GitHub的方法参与本书的撰写和纠错。网络出版对于我和杨福川编辑都是一个全新的体验。感谢Git,让我在一年内拥有了两种不同的出版体验。</p>
<p>– 蒋鑫, 2011.12</p>
<hr class="docutils" />
<table class="docutils footnote" frame="void" id="id4" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id2">[1]</a></td><td><a class="reference external" href="http://www.worldhello.net/gotgit/">http://www.worldhello.net/gotgit/</a></td></tr>
</tbody>
</table>
<table class="docutils footnote" frame="void" id="id5" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id3">[2]</a></td><td><a class="reference external" href="https://github.com/gotgit/gotgithub">https://github.com/gotgit/gotgithub</a></td></tr>
</tbody>
</table>
</div>
<div class="section" id="id6">
<h2>目录<a class="headerlink" href="#id6" title="永久链接至标题">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="01-explore-github/index.html">1. 探索GitHub</a><ul>
<li class="toctree-l2"><a class="reference internal" href="01-explore-github/010-what-is-github.html">1.1. 什么是GitHub</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-explore-github/020-github-hightlights.html">1.2. GitHub亮点</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-explore-github/030-explore-github.html">1.3. 探索GitHub</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="02-join-github/index.html">2. 加入GitHub</a><ul>
<li class="toctree-l2"><a class="reference internal" href="02-join-github/010-account-setup.html">2.1. 创建GitHub账号</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-join-github/020-browse-repo.html">2.2. 浏览托管项目</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-join-github/030-be-social.html">2.3. 社交网络</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="03-project-hosting/index.html">3. 项目托管</a><ul>
<li class="toctree-l2"><a class="reference internal" href="03-project-hosting/010-new-project.html">3.1. 创建新项目</a><ul>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/010-new-project.html#new-repo">3.1.1. 新版本库即是新项目</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/010-new-project.html#init-by-clone">3.1.2. 版本库初始化</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/010-new-project.html#init-by-push">3.1.3. 从已有版本库创建</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="03-project-hosting/020-repo-operation.html">3.2. 操作版本库</a><ul>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/020-repo-operation.html#noff-push">3.2.1. 强制推送</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/020-repo-operation.html#new-branch">3.2.2. 新建分支</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/020-repo-operation.html#default-branch">3.2.3. 设置默认分支</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/020-repo-operation.html#del-branch">3.2.4. 删除分支</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/020-repo-operation.html#git-tags">3.2.5. 里程碑管理</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="03-project-hosting/030-repo-authz.html">3.3. 公钥认证管理</a><ul>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/030-repo-authz.html#pubkeys">3.3.1. 用户级公钥管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/030-repo-authz.html#deploy-keys">3.3.2. 项目级公钥管理</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="03-project-hosting/040-repo-hooks.html">3.4. 版本库钩子扩展</a><ul>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/040-repo-hooks.html#mail-notify-hook">3.4.1. 邮件通知功能</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/040-repo-hooks.html#redmine">3.4.2. 和Redmine整合</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="03-project-hosting/050-homepage.html">3.5. 建立主页</a><ul>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/050-homepage.html#user-homepage">3.5.1. 创建个人主页</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/050-homepage.html#project-homepage">3.5.2. 创建项目主页</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/050-homepage.html#dedicate-domain">3.5.3. 使用专有域名</a></li>
<li class="toctree-l3"><a class="reference internal" href="03-project-hosting/050-homepage.html#jekyll">3.5.4. 使用Jekyll维护网站</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="04-work-with-others/index.html">4. 工作协同</a><ul>
<li class="toctree-l2"><a class="reference internal" href="04-work-with-others/010-fork-and-pull.html">4.1. Fork + Pull模式</a><ul>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/010-fork-and-pull.html#fork">4.1.1. 版本库派生</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/010-fork-and-pull.html#pull-request">4.1.2. Pull Request</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/010-fork-and-pull.html#merge-by-hands">4.1.3. 手工合并</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/010-fork-and-pull.html#online-edit">4.1.4. 在线编辑</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/010-fork-and-pull.html#fork-pull-request">4.1.5. 简化的 Fork + Pull Request</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="04-work-with-others/020-shared-repo.html">4.2. 共享版本库</a><ul>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/020-shared-repo.html#collaborators">4.2.1. 版本库授权</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/020-shared-repo.html#central-model">4.2.2. 与传统集中式工作模式的异同</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/020-shared-repo.html#merge-and-push">4.2.3. 合并后推送</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/020-shared-repo.html#rebase-and-push">4.2.4. 合并还是变基</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="04-work-with-others/030-organization.html">4.3. 组织和团队</a><ul>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/030-organization.html#new-org">4.3.1. 创建新组织</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/030-organization.html#org-settings">4.3.2. 组织管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/030-organization.html#org-repo-mgmt">4.3.3. 版本库管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/030-organization.html#pros-of-org">4.3.4. 个人还是组织</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="04-work-with-others/040-code-review.html">4.4. 代码评注</a><ul>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/040-code-review.html#commit-comments">4.4.1. 提交评注</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/040-code-review.html#line-comments">4.4.2. 逐行评注</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="04-work-with-others/050-issue.html">4.5. 缺陷跟踪</a><ul>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/050-issue.html#labels">4.5.1. 标签</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/050-issue.html#milestone">4.5.2. 里程碑</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/050-issue.html#issue">4.5.3. Issue的生命周期</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/050-issue.html#pull-requstissue">4.5.4. Pull Requst也是Issue</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="04-work-with-others/060-wiki.html">4.6. 维基</a><ul>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/060-wiki.html#wiki-init">4.6.1. 维基初始化</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/060-wiki.html#use-wiki">4.6.2. 使用维基</a></li>
<li class="toctree-l3"><a class="reference internal" href="04-work-with-others/060-wiki.html#git">4.6.3. 维基与Git</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="05-commercial-github/index.html">5. 付费服务</a><ul>
<li class="toctree-l2"><a class="reference internal" href="05-commercial-github/non-free-plans.html">5.1. GitHub收费方案</a></li>
<li class="toctree-l2"><a class="reference internal" href="05-commercial-github/github-enterprise.html">5.2. GitHub企业版</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="06-side-projects/index.html">6. GitHub副产品</a><ul>
<li class="toctree-l2"><a class="reference internal" href="06-side-projects/gist.html">6.1. GitHub:Gist</a><ul>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/gist.html#paste">6.1.1. 数据的粘贴和引用</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/gist.html#gistgit">6.1.2. Gist背后的Git库</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/gist.html#greasemonkey">6.1.3. Greasemonkey</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/gist.html#gist-cli">6.1.4. 命令行操作Gist</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="06-side-projects/other-scm.html">6.2. 其他版本控制工具支持</a><ul>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/svn.html">6.2.1. 用SVN操作GitHub</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/hg-git.html">6.2.2. 用Hg操作GitHub</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="06-side-projects/tools.html">6.3. 客户端工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/github-mac.html">6.3.1. github:mac</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/hub.html">6.3.2. hub</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/ios.html">6.3.3. iOS应用</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="06-side-projects/others.html">6.4. 其他</a><ul>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/jobs.html">6.4.1. GitHub:Jobs</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/shop.html">6.4.2. GitHub:Shop</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/short-url.html">6.4.3. GitHub短网址服务</a></li>
<li class="toctree-l3"><a class="reference internal" href="06-side-projects/opensource.html">6.4.4. GitHub Open Source</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="appendix/markups.html">7. 附录:轻量级标记语言</a></li>
</ul>
</div>
</div>
<div class="section" id="id7">
<h2>贡献者列表<a class="headerlink" href="#id7" title="永久链接至标题">¶</a></h2>
<p>Git和GitHub促进了开源软件的发展是因为消除了核心开发者和贡献者的隔阂——你若能看到代码,你就能改进代码。开放的电子书亦是如此,下面的贡献者让本书变得更好。</p>
<p>以贡献时间为序,感谢:</p>
<ol class="arabic simple">
<li><a class="reference external" href="https://github.com/zhhailon">Zhang Hailong</a> 报告文字错误。问题: <a class="reference external" href="https://github.com/gotgit/gotgithub/issues/2">#2</a> 。</li>
<li><a class="reference external" href="https://github.com/riku">Riku</a> 纠正文字错误。提交: <a class="reference external" href="https://github.com/gotgit/gotgithub/commit/455d0db">455d0db</a> , <a class="reference external" href="https://github.com/gotgit/gotgithub/commit/f244e3d">f244e3d</a> 。</li>
<li><a class="reference external" href="https://github.com/windwiny">windwiny</a> 纠正文字错误。提交: <a class="reference external" href="https://github.com/gotgit/gotgithub/commit/1ed1a51">1ed1a51</a></li>
</ol>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>导航</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="总目录"
>索引</a></li>
<li class="right" >
<a href="01-explore-github/index.html" title="1. 探索GitHub"
>下一页</a> |</li>
<li><a href="#">GotGitHub</a> »</li>
</ul>
</div>
<div class="footer">
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img alt="知识共享许可协议" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" /></a>
<br />
全部内容以 <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons 署名-非商业性使用-相同方式共享 3.0 协议发布</a>.
<br />
© Copyright 2011, 蒋鑫。
最后更新于 2013/10/14。
使用 <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3 创建。
</div>
</body>
</html>