Skip to content

Commit 0f4505c

Browse files
committed
Indent with two spaces in zh files
converted tabs to spaces also. but these commits is limited in the zh version. the reason I did this: - long lines is prone to conflict - the use of tab disturbs the indentation when switching editors without proper tab space setting, which you may never get it right. so why not give up and use spaces instead. those changes is limited to the zh translation. Merge remote-tracking branch 'upstream/gh-pages' into gh-pages Conflicts: .gitignore _layouts/zh_reference.html zh/basic/index.html zh/branching/index.html zh/creating/index.html zh/index.html zh/inspect/index.html zh/remotes/index.html
2 parents b7cefc4 + b46838f commit 0f4505c

File tree

25 files changed

+1279
-884
lines changed

25 files changed

+1279
-884
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
_site
22
*~
3-
\.*.swp
4-
.gitignore
3+
.*.swp
54
.DS_Store

LICENSE.md

Lines changed: 105 additions & 0 deletions
Large diffs are not rendered by default.

NOTES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Introduction
22
(how git is different)
33

4-
Getting and Creating Projects
4+
Getting & Creating Projects
55
* init
66
* clone
77

_layouts/reference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<!-- <li><a id="menu_cookbook" href="/cookbook.html">Cookbook</a></li> -->
2828
<li><a id="menu_about" href="/about.html">About</a></li>
2929
<li>&#167;</li>
30-
<li><a href="http://github.com/schacon/git-reference">Site Source</a></li>
30+
<li><a href="http://github.com/github/git-reference">Site Source</a></li>
3131
</ul>
3232
<br/>
3333
&nbsp;

_layouts/zh_reference.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<link rel="stylesheet" type="text/css" href="/css/grid.css" media="screen" />
99
<link rel="stylesheet" type="text/css" href="/css/layout.css" media="screen" />
1010
<link rel="stylesheet" type="text/css" href="/css/nav.css" media="screen" />
11-
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/zh//css/ie6.css" media="screen" /><![endif]-->
12-
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/zh//css/ie.css" media="screen" /><![endif]-->
11+
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/css/ie6.css" media="screen" /><![endif]-->
12+
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen" /><![endif]-->
1313
<script type="text/javascript" src="/js/jquery-1.4.1.min.js"></script>
1414
<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
1515
<script type="text/javascript" src="/js/action.js"></script>
@@ -27,7 +27,7 @@
2727
<!-- <li><a id="menu_cookbook" href="/zh/cookbook.html">Cookbook</a></li> -->
2828
<li><a id="menu_about" href="/zh/about.html">关于</a></li>
2929
<li>&#167;</li>
30-
<li><a href="https://github.com/schacon/git-reference">网站源码</a></li>
30+
<li><a href="http://github.com/github/git-reference">网站源码</a></li>
3131
</ul>
3232
<br/>
3333
&nbsp;

basic/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2>
3838
<div class="box">
3939
<h2>
4040
<span class="docs">
41-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-add.html">docs</a> &nbsp;
41+
<a target="new" href="http://git-scm.com/docs/git-add">docs</a> &nbsp;
4242
<a target="new" href="http://progit.org/book/ch2-2.html#tracking_new_files">book</a>
4343
</span>
4444
<a name="add">git add</a>
@@ -130,7 +130,7 @@ <h2>
130130
<div class="box">
131131
<h2>
132132
<span class="docs">
133-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-status.html">docs</a> &nbsp;
133+
<a target="new" href="http://git-scm.com/docs/git-status">docs</a> &nbsp;
134134
<a target="new" href="http://progit.org/book/ch2-2.html#checking_the_status_of_your_files">book</a>
135135
</span>
136136
<a name="status">git status</a>
@@ -214,7 +214,7 @@ <h2>
214214
<div class="box">
215215
<h2>
216216
<span class="docs">
217-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-diff.html">docs</a> &nbsp;
217+
<a target="new" href="http://git-scm.com/docs/git-diff">docs</a> &nbsp;
218218
<a target="new" href="http://progit.org/book/ch2-2.html#viewing_your_staged_and_unstaged_changes">book</a>
219219
</span>
220220
<a name="diff">git diff</a>
@@ -416,7 +416,7 @@ <h4>
416416
<div class="box">
417417
<h2>
418418
<span class="docs">
419-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-commit.html">docs</a> &nbsp;
419+
<a target="new" href="http://git-scm.com/docs/git-commit">docs</a> &nbsp;
420420
<a target="new" href="http://progit.org/book/ch2-2.html#committing_your_changes">book</a>
421421
</span>
422422
<a name="commit">git commit</a>
@@ -596,7 +596,7 @@ <h4>
596596
<div class="box">
597597
<h2>
598598
<span class="docs">
599-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-reset.html">docs</a> &nbsp;
599+
<a target="new" href="http://git-scm.com/docs/git-reset">docs</a> &nbsp;
600600
<a target="new" href="http://progit.org/book/ch2-4.html#unstaging_a_staged_file">book</a>
601601
</span>
602602
<a name="reset">git reset HEAD</a>
@@ -694,7 +694,7 @@ <h2>
694694
<div class="box">
695695
<h2>
696696
<span class="docs">
697-
<a href="http://www.kernel.org/pub/software/scm/git/docs/git-rm.html">docs</a> &nbsp;
697+
<a href="http://git-scm.com/docs/git-rm">docs</a> &nbsp;
698698
<a href="http://progit.org/book/ch2-2.html#removing_files">book</a>
699699
</span>
700700
<a name="rm-mv">git rm</a>
@@ -747,5 +747,5 @@ <h4>
747747
</div>
748748
</div>
749749

750-
<p><a href="/branching">On to Branching and Merging &#187;</a></p>
750+
<p><a class="page-button next-page" href="/branching">On to Branching and Merging &#187;</a></p>
751751

branching/index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2>
3838
<div class="box">
3939
<h2>
4040
<span class="docs">
41-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-branch.html">docs</a> &nbsp;
41+
<a target="new" href="http://git-scm.com/docs/git-branch">docs</a> &nbsp;
4242
<a target="new" href="http://progit.org/book/ch3-2.html">book</a>
4343
</span>
4444
<a name="branch">git branch</a>
@@ -49,7 +49,7 @@ <h2>
4949

5050
<h2>
5151
<span class="docs">
52-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html">docs</a> &nbsp;
52+
<a target="new" href="http://git-scm.com/docs/git-checkout">docs</a> &nbsp;
5353
<a target="new" href="http://progit.org/book/ch3-2.html">book</a>
5454
</span>
5555
<a name="checkout">git checkout</a>
@@ -226,7 +226,7 @@ <h4>
226226
<div class="box">
227227
<h2>
228228
<span class="docs">
229-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-merge.html">docs</a> &nbsp;
229+
<a target="new" href="http://git-scm.com/docs/git-merge">docs</a> &nbsp;
230230
<a target="new" href="http://progit.org/book/ch3-2.html#basic_merging">book</a>
231231
</span>
232232
<a name="merge">git merge</a>
@@ -292,7 +292,6 @@ <h4>
292292

293293
<pre>
294294
<b>$ git checkout -b change_class</b>
295-
M hello.rb
296295
Switched to a new branch 'change_class'
297296
<b>$ vim hello.rb </b>
298297
<b>$ head -1 hello.rb </b>
@@ -421,7 +420,7 @@ <h4>
421420
<p>You can see that Git inserts standard merge conflict markers, much like
422421
Subversion, into files when it gets a merge conflict. Now it's up to us
423422
to resolve them. We will do it manually here, but check out
424-
<a href="http://www.kernel.org/pub/software/scm/git/docs/git-mergetool.html">git mergetool</a>
423+
<a href="http://git-scm.com/docs/git-mergetool">git mergetool</a>
425424
if you want Git to fire up a graphical mergetool
426425
(like kdiff3, emerge, p4merge, etc) instead.
427426
</p>
@@ -473,7 +472,7 @@ <h4>
473472
<div class="box">
474473
<h2>
475474
<span class="docs">
476-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-log.html">docs</a> &nbsp;
475+
<a target="new" href="http://git-scm.com/docs/git-log">docs</a> &nbsp;
477476
<a target="new" href="http://progit.org/book/ch6-1.html#commit_ranges">book</a>
478477
</span>
479478
<a name="log">git log</a>
@@ -665,6 +664,9 @@ <h2>
665664
front of the branch that we don't want to see. For instance, if we want
666665
to see the commits that are in the 'erlang' branch that are not in the
667666
'master' branch, we can do <code>erlang ^master</code>, or vice versa.
667+
Note that the Windows command-line treats <code>^</code> as a special
668+
character, in which case you'll need to surround <code>^master</code>
669+
in quotes.
668670
</p>
669671

670672
<pre>
@@ -693,7 +695,7 @@ <h2>
693695
<div class="box">
694696
<h2>
695697
<span class="docs">
696-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-tag.html">docs</a> &nbsp;
698+
<a target="new" href="http://git-scm.com/docs/git-tag">docs</a> &nbsp;
697699
<a target="new" href="http://progit.org/book/ch2-6.html">book</a>
698700
</span>
699701
<a name="tag">git tag</a>
@@ -775,5 +777,5 @@ <h2>
775777
</div>
776778
</div>
777779

778-
<p><a href="/remotes">On to Sharing and Updating Projects &#187;</a></p>
780+
<p><a class="page-button next-page" href="/remotes">On to Sharing and Updating Projects &#187;</a></p>
779781

creating/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Getting and Creating Projects</h2>
2323
<div class="box">
2424
<h2>
2525
<span class="docs">
26-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html">docs</a> &nbsp;
26+
<a target="new" href="http://git-scm.com/docs/git-init">docs</a> &nbsp;
2727
<a target="new" href="http://progit.org/book/ch2-1.html#initializing_a_repository_in_an_existing_directory">book</a>
2828
</span>
2929
<a name="init">git init</a>
@@ -74,7 +74,7 @@ <h2>
7474
<div class="box">
7575
<h2>
7676
<span class="docs">
77-
<a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-clone.html">docs</a> &nbsp;
77+
<a target="new" href="http://git-scm.com/docs/git-clone">docs</a> &nbsp;
7878
<a target="new" href="http://progit.org/book/ch2-1.html#cloning_an_existing_repository">book</a>
7979
</span>
8080
<a name="clone">git clone</a>
@@ -134,4 +134,4 @@ <h2>
134134
</div>
135135
</div>
136136

137-
<p><a href="/basic">On to Basic Snapshotting &#187;</a></p>
137+
<p><a class="page-button next-page" href="/basic">On to Basic Snapshotting &#187;</a></p>

css/960.css

100755100644
File mode changed.

css/grid.css

100755100644
File mode changed.

0 commit comments

Comments
 (0)