Skip to content

Commit 1b4767f

Browse files
committed
Merge pull request #70 from progit/apply-upstream
Apply upstream changes
2 parents 0742443 + 273c737 commit 1b4767f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1246
-772
lines changed

README.asc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ Like the first edition, the second edition of Pro Git is open source under a Cre
4141
第1版と同様、Pro Git 第2版もクリエイティブコモンズライセンスを用いたオープンソースの本です。
4242

4343
//////////////////////////
44-
A couple of things have changed since open sourcing the first edition. For one, we've moved from Markdown to the amazing Asciidoc format for the text of the book. We've also moved to using O'Reilly's https://atlas.oreilly.com[Atlas platform] for generating continuous builds of the book so all major formats are always available in every language.
44+
A couple of things have changed since open sourcing the first edition.
45+
For one, we've moved from Markdown to the amazing Asciidoc format for the text of the book.
46+
We've also moved to using O'Reilly's https://atlas.oreilly.com[Atlas platform] for generating continuous builds of the book so all major formats are always available in every language.
4547
//////////////////////////
4648
第1版から変わった点が2つあります。まず、MarkdownからAsciidocに本文のフォーマットを変更しました。次に、オライリーの https://atlas.oreilly.com[Atlas platform] を使って継続的に電子書籍データを生成するようにしました。これによって、主要なフォーマットの電子書籍が英語版・翻訳版問わず常に提供できるようになりました。
4749

4850
//////////////////////////
49-
We've also moved to keeping the translations in separate repositories rather than subdirectories of the English repository. See link:CONTRIBUTING.md[the Contributing document] for more information.
51+
We've also moved to keeping the translations in separate repositories rather than subdirectories of the English repository.
52+
See link:CONTRIBUTING.md[the Contributing document] for more information.
5053
//////////////////////////
5154
また、翻訳用に言語ごとのリポジトリを設け、英語用リポジトリのサブディレクトリは廃止しました。詳しくは link:CONTRIBUTING.md[コントリビューションガイド] を確認してください。
5255

@@ -61,7 +64,8 @@ There are two ways to generate e-book content from this source code.
6164
2つの方法で、電子書籍データをソースコードから生成できます。
6265

6366
//////////////////////////
64-
The easiest way is simply to let us do it. A robot is standing by to look for new work on the main branch and automatically build it for everyone.
67+
The easiest way is simply to let us do it.
68+
A robot is standing by to look for new work on the main branch and automatically build it for everyone.
6569
//////////////////////////
6670
楽な方法は、我々に任せてしまうものです。専用のボットがメインブランチを監視していて、新しい内容が追加されるたびにデータを自動でビルドしてくれています。
6771

@@ -71,7 +75,8 @@ You can find the current builds on http://git-scm.com/book[] and more informatio
7175
最新のビルドは http://git-scm.com/book[] で、提供されているビルドの詳細は https://progit.org[] で確認できます。
7276

7377
//////////////////////////
74-
The other way to generate e-book files is to do so manually with Asciidoctor. If you run the following you _may_ actually get HTML, Epub, Mobi and PDF output files:
78+
The other way to generate e-book files is to do so manually with Asciidoctor.
79+
If you run the following you _may_ actually get HTML, Epub, Mobi and PDF output files:
7580
//////////////////////////
7681
もうひとつのやり方は、Asciidoctorを使って自前でビルドするものです。以下の手順を実行すると、HTML・Epub・Mobi・PDFのデータが手に入る _かも_ しれません。
7782

book/01-introduction/sections/basics.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ The basic Git workflow goes something like this:
230230
231231
//////////////////////////
232232
If a particular version of a file is in the Git directory, it's considered committed.
233-
If it's modified but has been added to the staging area, it is staged.
233+
If it has been modified and was added to the staging area, it is staged.
234234
And if it was changed since it was checked out but has not been staged, it is modified.
235235
In <<_git_basics_chapter>>, you'll learn more about these states and how you can either take advantage of them or skip the staged part entirely.
236236
//////////////////////////

book/01-introduction/sections/first-time-setup.asc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,20 @@ Each level overrides values in the previous level, so values in `.git/config` tr
3939
それぞれのレベルの値は以前のレベルの値を上書きするため、`.git/config`の中の設定値は`/etc/gitconfig`の設定値に優先されます。
4040
4141
//////////////////////////
42-
On Windows systems, Git looks for the `.gitconfig` file in the `$HOME` directory (`C:\Users\$USER` for most people).
43-
It also still looks for `/etc/gitconfig`, although it's relative to the MSys root, which is wherever you decide to install Git on your Windows system when you run the installer.
42+
However, if you are using Git for Windows 2.x, it is `C:\Documents and Settings\All Users\Application Data\Git\config` on Windows XP, and it is `C:\ProgramData\Git\config` on Windows Vista and newer.
4443
//////////////////////////
45-
Windows環境下では、Gitは`$HOME`ディレクトリ(たいていは`C:\Users\$USER`)の中の`.gitconfig`ファイルを検索にいきます。
46-
ただし、Gitは`/etc/gitconfig`も見にいきます。この場所は実際には、WindowsシステムにGitをインストールするとGitのインストーラー実行時に決めた場所であり、MSysのルートの場所になります。
44+
ですが、もし Git for Windows 2.x を使っている場合は、`C:\Documents and Settings\All Users\Application Data\Git\config`(Windows XP)か `C:\ProgramData\Git\config` (Windows Vista 以降)が検索されます。
4745
4846
//////////////////////////
4947
==== Your Identity
5048
//////////////////////////
5149
==== 個人の識別情報
5250
5351
//////////////////////////
54-
The first thing you should do when you install Git is to set your user name and e-mail address.
52+
The first thing you should do when you install Git is to set your user name and email address.
5553
This is important because every Git commit uses this information, and it's immutably baked into the commits you start creating:
5654
//////////////////////////
57-
Gitをインストールしたときに最初にすべきことは、ユーザー名とE-mailアドレスを設定することです
55+
Gitをインストールしたときに最初にすべきことは、ユーザー名とEmailアドレスを設定することです
5856
全てのGitのコミットはこの情報を用いるため、これは重要で、作成するコミットに永続的に焼き付けられます:
5957
6058
[source,console]
@@ -65,10 +63,11 @@ $ git config --global user.email [email protected]
6563
6664
//////////////////////////
6765
Again, you need to do this only once if you pass the `--global` option, because then Git will always use that information for anything you do on that system.
68-
If you want to override this with a different name or e-mail address for specific projects, you can run the command without the `--global` option when you're in that project.
66+
<<<<<<< HEAD
67+
If you want to override this with a different name or email address for specific projects, you can run the command without the `--global` option when you're in that project.
6968
//////////////////////////
7069
また、もし`--global`オプションを指定するのであれば、Gitはその後、そのシステム上で行なう(訳者注:あるユーザーの)全ての操作に対して常にこの情報を使うようになるため、この操作を行なう必要はたった一度だけです。
71-
もし、違う名前とE-mailアドレスを特定のプロジェクトで上書きしたいのであれば、そのプロジェクトの(訳者注:Gitディレクトリの)中で、`--global`オプション無しでこのコマンドを実行することができます。
70+
もし、違う名前とEmailアドレスを特定のプロジェクトで上書きしたいのであれば、そのプロジェクトの(訳者注:Gitディレクトリの)中で、`--global`オプション無しでこのコマンドを実行することができます。
7271
7372
//////////////////////////
7473
Many of the GUI tools will help you do this when you first run them.
@@ -97,7 +96,8 @@ $ git config --global core.editor emacs
9796
[WARNING]
9897
//////////////////////////
9998
====
100-
Vim and Emacs are popular text editors often used by developers on Unix based systems like Linux and Mac. If you are not familiar with either of these editors or are on a Windows system, you may need to search for instructions for how to set up your favorite editor with Git.
99+
Vim and Emacs are popular text editors often used by developers on Unix based systems like Linux and Mac.
100+
If you are not familiar with either of these editors or are on a Windows system, you may need to search for instructions for how to set up your favorite editor with Git.
101101
If you don't set an editor like this and you don't know what Vim or Emacs are, you will likely get into a really confusing state when they are launched.
102102
====
103103
//////////////////////////

book/01-introduction/sections/installing.asc

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Gitを使い始める前に、まずはコンピューターでそれを使え
1515
[NOTE]
1616
//////////////////////////
1717
====
18-
This book was written using Git version *2.0.0*. Though most of the commands we use should work even in ancient versions of Git, some of them might not or might act slightly differently if you're using an older version. Since Git is quite excellent at preserving backwards compatibility, any version after 2.0 should work just fine.
18+
This book was written using Git version *2.0.0*.
19+
Though most of the commands we use should work even in ancient versions of Git, some of them might not or might act slightly differently if you're using an older version.
20+
Since Git is quite excellent at preserving backwards compatibility, any version after 2.0 should work just fine.
1921
====
2022
//////////////////////////
2123
====
@@ -35,14 +37,20 @@ If you're on Fedora for example, you can use yum:
3537
バイナリのインストーラーを通じてLinux上にGitをインストールしたいのであれば、大抵はディストリビューションに付属する基本的なパッケージ・マネジメント・ツールを使って、それを行なう事ができます。
3638
もしFedoraを使っているのであれば、yumを使う事が出来ます:
3739
38-
$ yum install git
40+
[source,console]
41+
----
42+
$ sudo yum install git
43+
----
3944
4045
//////////////////////////
4146
If you're on a Debian-based distribution like Ubuntu, try apt-get:
4247
//////////////////////////
4348
もしUbuntuのようなDebianベースのディストリュビューションを使っているのであれば、apt-getを試してみましょう:
4449
45-
$ apt-get install git
50+
[source,console]
51+
----
52+
$ sudo apt-get install git
53+
----
4654
4755
//////////////////////////
4856
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
@@ -98,12 +106,12 @@ GitHubが提供しているGUIのGitツールには、コマンドラインツ
98106
There are also a few ways to install Git on Windows.(((Windows, installing)))
99107
The most official build is available for download on the Git website.
100108
Just go to http://git-scm.com/download/win[] and the download will start automatically.
101-
Note that this is a project called Git for Windows (also called msysGit), which is separate from Git itself; for more information on it, go to http://msysgit.github.io/[].
109+
Note that this is a project called Git for Windows, which is separate from Git itself; for more information on it, go to https://git-for-windows.github.io/[].
102110
//////////////////////////
103111
Windowsの場合でも、いくつかの方法でGitをインストールできます。(((Windows, installing)))
104112
最も公式なビルドは、Gitのウェブサイトからダウンロードできます。
105113
http://git-scm.com/download/win[] にアクセスすると、ダウンロードが自動で始まるようになっています。
106-
注意事項として、このプロジェクトはGit for Windows(msysGitともいう)という名前で、Gitそのものとは別のプロジェクトです。詳細については http://msysgit.github.io/[] を参照してください。
114+
注意事項として、このプロジェクトはGit for Windowsという名前で、Gitそのものとは別のプロジェクトです。詳細については https://git-for-windows.github.io/[] を参照してください。
107115
108116
//////////////////////////
109117
Another easy way to get Git installed is by installing GitHub for Windows.
@@ -137,20 +145,24 @@ For example, if you're on a system that has yum (such as Fedora) or apt-get (suc
137145
Gitをソースからインストールするのなら、Gitが依存する以下のライブラリが必要です:curl、zlib、openssl、expat、libiconv
138146
もし、使っているシステムでyumが使えたり(Fedoraなど)、apt-getが使えたり(Debianベースのシステムなど)する場合は、それぞれ次のようなコマンドを使うと Git のバイナリをコンパイルしインストールするための必要最低限の依存ライブラリをインストールしてくれます。
139147
140-
$ yum install curl-devel expat-devel gettext-devel \
141-
openssl-devel zlib-devel
142-
143-
$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
144-
libz-dev libssl-dev
148+
[source,console]
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+
----
145155
146156
//////////////////////////
147157
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required:
148158
//////////////////////////
149159
なお、ドキュメントを doc、html、info 形式等で出力したい場合は、以下の依存ライブラリも必要になります。
150160
151-
$ yum install asciidoc xmlto docbook2x
152-
153-
$ 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+
----
154166
155167
//////////////////////////
156168
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
@@ -166,16 +178,22 @@ Then, compile and install:
166178
//////////////////////////
167179
ダウンロードが終わったら、コンパイルしてインストールします:
168180
169-
$ tar -zxf git-2.0.0.tar.gz
170-
$ cd git-2.0.0
171-
$ make configure
172-
$ ./configure --prefix=/usr
173-
$ make all doc info
174-
$ sudo make install install-doc install-html install-info
181+
[source,console]
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+
----
175190
176191
//////////////////////////
177192
After this is done, you can also get Git via Git itself for updates:
178193
//////////////////////////
179194
一度この手順を済ませると、次からはGitを使ってGitそのものをアップデートできます:
180195
181-
$ git clone git://git.kernel.org/pub/scm/git/git.git
196+
[source,console]
197+
----
198+
$ git clone git://git.kernel.org/pub/scm/git/git.git
199+
----

book/02-git-basics/sections/aliases.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This makes the following two commands equivalent:
5757
[source,console]
5858
----
5959
$ git unstage fileA
60-
$ git reset HEAD fileA
60+
$ git reset HEAD -- fileA
6161
----
6262
6363
//////////////////////////
@@ -103,5 +103,5 @@ Git が単に新しいコマンドをエイリアスで置き換えているこ
103103
104104
[source,console]
105105
----
106-
$ git config --global alias.visual "!gitk"
106+
$ git config --global alias.visual '!gitk'
107107
----

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

0 commit comments

Comments
 (0)