Skip to content

Commit 224b5e5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into apply-upstream
# Conflicts: # book/01-introduction/sections/installing.asc # book/02-git-basics/sections/getting-a-repository.asc # book/02-git-basics/sections/recording-changes.asc # book/05-distributed-git/sections/contributing.asc # book/05-distributed-git/sections/maintaining.asc # book/06-github/sections/2-contributing.asc # book/06-github/sections/5-scripting.asc # book/07-git-tools/sections/advanced-merging.asc # book/07-git-tools/sections/rerere.asc # book/07-git-tools/sections/reset.asc # book/07-git-tools/sections/revision-selection.asc # book/07-git-tools/sections/rewriting-history.asc # book/07-git-tools/sections/signing.asc # book/07-git-tools/sections/stashing-cleaning.asc # book/07-git-tools/sections/submodules.asc # book/09-git-and-other-scms/sections/client-hg.asc # book/09-git-and-other-scms/sections/client-tfs.asc # book/09-git-and-other-scms/sections/import-custom.asc # book/09-git-and-other-scms/sections/import-svn.asc # book/C-git-commands/1-git-commands.asc
2 parents f740bc1 + 9cc92d6 commit 224b5e5

File tree

30 files changed

+278
-320
lines changed

30 files changed

+278
-320
lines changed

book/01-introduction/sections/installing.asc

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,19 @@ If you're on Fedora for example, you can use yum:
3838
もしFedoraを使っているのであれば、yumを使う事が出来ます:
3939
4040
[source,console]
41-
$ sudo yum install git
41+
----
42+
$ sudo yum install git
43+
----
4244
4345
//////////////////////////
4446
If you're on a Debian-based distribution like Ubuntu, try apt-get:
4547
//////////////////////////
4648
もしUbuntuのようなDebianベースのディストリュビューションを使っているのであれば、apt-getを試してみましょう:
4749
4850
[source,console]
49-
$ sudo apt-get install git
51+
----
52+
$ sudo apt-get install git
53+
----
5054
5155
//////////////////////////
5256
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
@@ -142,19 +146,23 @@ Gitをソースからインストールするのなら、Gitが依存する以
142146
もし、使っているシステムでyumが使えたり(Fedoraなど)、apt-getが使えたり(Debianベースのシステムなど)する場合は、それぞれ次のようなコマンドを使うと Git のバイナリをコンパイルしインストールするための必要最低限の依存ライブラリをインストールしてくれます。
143147
144148
[source,console]
145-
$ sudo yum install curl-devel expat-devel gettext-devel \
146-
openssl-devel zlib-devel
147-
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
148-
libz-dev libssl-dev
149+
----
150+
$ sudo yum install curl-devel expat-devel gettext-devel \
151+
openssl-devel zlib-devel
152+
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
153+
libz-dev libssl-dev
154+
----
149155
150156
//////////////////////////
151157
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required:
152158
//////////////////////////
153159
なお、ドキュメントを doc、html、info 形式等で出力したい場合は、以下の依存ライブラリも必要になります。
154160
155-
$ yum install asciidoc xmlto docbook2x
156-
157-
$ apt-get install asciidoc xmlto docbook2x
161+
[source,console]
162+
----
163+
$ sudo yum install asciidoc xmlto docbook2x
164+
$ sudo apt-get install asciidoc xmlto docbook2x
165+
----
158166
159167
//////////////////////////
160168
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
@@ -171,17 +179,21 @@ Then, compile and install:
171179
ダウンロードが終わったら、コンパイルしてインストールします:
172180
173181
[source,console]
174-
$ tar -zxf git-2.0.0.tar.gz
175-
$ cd git-2.0.0
176-
$ make configure
177-
$ ./configure --prefix=/usr
178-
$ make all doc info
179-
$ sudo make install install-doc install-html install-info
182+
----
183+
$ tar -zxf git-2.0.0.tar.gz
184+
$ cd git-2.0.0
185+
$ make configure
186+
$ ./configure --prefix=/usr
187+
$ make all doc info
188+
$ sudo make install install-doc install-html install-info
189+
----
180190
181191
//////////////////////////
182192
After this is done, you can also get Git via Git itself for updates:
183193
//////////////////////////
184194
一度この手順を済ませると、次からはGitを使ってGitそのものをアップデートできます:
185195
186196
[source,console]
187-
$ git clone git://git.kernel.org/pub/scm/git/git.git
197+
----
198+
$ git clone git://git.kernel.org/pub/scm/git/git.git
199+
----

book/02-git-basics/sections/getting-a-repository.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Git プロジェクトを取得するには、大きく二通りの方法があ
1919
==== 既存のディレクトリでのリポジトリの初期化
2020
2121
//////////////////////////
22-
If you're starting to track an existing project in Git, you need to go to the project's directory and type
22+
If you're starting to track an existing project in Git, you need to go to the project's directory and type:
2323
//////////////////////////
2424
既存のプロジェクトを Git で管理し始めるときは、そのプロジェクトのディレクトリに移動して次のように打ち込みます。
2525

book/02-git-basics/sections/recording-changes.asc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Changes to be committed:
262262
//////////////////////////
263263
While the `git status` output is pretty comprehensive, it's also quite wordy.
264264
Git also has a short status flag so you can see your changes in a more compact way.
265-
If you run `git status -s` or `git status --short` you get a far more simplified output from the command.
265+
If you run `git status -s` or `git status --short` you get a far more simplified output from the command:
266266
//////////////////////////
267267
`git status` の出力はとてもわかりやすいですが、一方で冗長でもあります。
268268
Gitにはそれを簡略化するためのオプションもあり、変更点をより簡潔に確認できます。
@@ -522,7 +522,7 @@ Changes not staged for commit:
522522
----
523523
524524
//////////////////////////
525-
Now you can use `git diff` to see what is still unstaged
525+
Now you can use `git diff` to see what is still unstaged:
526526
//////////////////////////
527527
`git diff` を使うことで、まだステージされていない内容を知ることができます。
528528
@@ -809,7 +809,7 @@ $ git rm --cached README
809809
810810
//////////////////////////
811811
You can pass files, directories, and file-glob patterns to the `git rm` command.
812-
That means you can do things such as
812+
That means you can do things such as:
813813
//////////////////////////
814814
ファイル名やディレクトリ名、そしてファイル glob パターンを `git rm` コマンドに渡すことができます。
815815
つまり、このようなこともできるということです。
@@ -858,7 +858,7 @@ Git の中でファイル名を変更しても、「ファイル名を変更し
858858
859859
//////////////////////////
860860
Thus it's a bit confusing that Git has a `mv` command.
861-
If you want to rename a file in Git, you can run something like
861+
If you want to rename a file in Git, you can run something like:
862862
//////////////////////////
863863
しかし Git には `mv` コマンドがあります。ちょっと混乱するかもしれませんね。
864864
Git の中でファイル名を変更したい場合は次のようなコマンドを実行します。

book/02-git-basics/sections/viewing-history.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To get the project, run
2020
2121
[source,console]
2222
----
23-
git clone https://github.com/schacon/simplegit-progit
23+
$ git clone https://github.com/schacon/simplegit-progit
2424
----
2525
2626
//////////////////////////

book/04-git-server/sections/git-daemon.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Basically, you need to run this command in a daemonized manner:(((git commands,
2828
2929
[source,console]
3030
----
31-
git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
31+
$ git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
3232
----
3333
3434
//////////////////////////
@@ -84,7 +84,7 @@ To get it running without having to reboot, you can run this:
8484
8585
[source,console]
8686
----
87-
initctl start local-git-daemon
87+
$ initctl start local-git-daemon
8888
----
8989
9090
//////////////////////////

0 commit comments

Comments
 (0)