From 1641363a7c91d4ca7e368bf1a26b1eecfaee56a0 Mon Sep 17 00:00:00 2001 From: Haruo Nakayama Date: Fri, 23 Oct 2015 16:15:17 +0900 Subject: [PATCH] fix #83 --- book/04-git-server/sections/git-daemon.asc | 4 ++-- book/04-git-server/sections/git-on-a-server.asc | 2 +- book/05-distributed-git/sections/contributing.asc | 10 ++++++++++ book/06-github/sections/1-setting-up-account.asc | 2 +- book/07-git-tools/sections/revision-selection.asc | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/book/04-git-server/sections/git-daemon.asc b/book/04-git-server/sections/git-daemon.asc index 6fea02f8..5314abfc 100644 --- a/book/04-git-server/sections/git-daemon.asc +++ b/book/04-git-server/sections/git-daemon.asc @@ -35,7 +35,7 @@ $ git daemon --reuseaddr --base-path=/opt/git/ /opt/git/ `--reuseaddr` allows the server to restart without waiting for old connections to time out, the `--base-path` option allows people to clone projects without specifying the entire path, and the path at the end tells the Git daemon where to look for repositories to export. If you're running a firewall, you'll also need to punch a hole in it at port 9418 on the box you're setting this up on. ////////////////////////// -`--reuseaddr` は、前の接続がタイムアウトするのを待たずにサーバーを再起動させるオプションです。`--base-path` オプションを指定すると、フルパスをしていしなくてもプロジェクトをクローンできるようになります。そして最後に指定したパスは、Git デーモンに公開させるリポジトリの場所です。 +`--reuseaddr` は、前の接続がタイムアウトするのを待たずにサーバーを再起動させるオプションです。`--base-path` オプションを指定すると、フルパスを指定しなくてもプロジェクトをクローンできるようになります。そして最後に指定したパスは、Git デーモンに公開させるリポジトリの場所です。 ファイアウォールを使っているのなら、ポート 9418 に穴を開けなければなりません。 ////////////////////////// @@ -73,7 +73,7 @@ For security reasons, it is strongly encouraged to have this daemon run as a use For the sake of simplicity we'll simply run it as the same 'git' user that `git-shell` is running as. ////////////////////////// セキュリティを考慮して、リポジトリに対する読み込み権限しかないユーザーでこのデーモンを実行させるようにしましょう。新しいユーザー 'git-ro' を作り、このユーザーでデーモンを実行させるとよいでしょう。 -ここでは、説明を簡単にするために Gitosis と同じユーザー 'git' で実行させることにします。 +ここでは、説明を簡単にするために `git-shell` と同じユーザー 'git' で実行させることにします。 ////////////////////////// When you restart your machine, your Git daemon will start automatically and respawn if it goes down. diff --git a/book/04-git-server/sections/git-on-a-server.asc b/book/04-git-server/sections/git-on-a-server.asc index c4899756..32c2077e 100644 --- a/book/04-git-server/sections/git-on-a-server.asc +++ b/book/04-git-server/sections/git-on-a-server.asc @@ -120,7 +120,7 @@ It's important to note that this is literally all you need to do to run a useful You're ready to go – nothing else needed. ////////////////////////// 複数名が使用する Git サーバーをたったこれだけの作業で用意できるというのは特筆すべきことです。 -サーバー SSH アクセス可能なアカウントを作成し、ベアリポジトリをサーバーのどこかに置き、そこに読み書き可能なアクセス権を設定する。 +サーバーにSSHでアクセス可能なアカウントを作成し、ベアリポジトリをサーバーのどこかに置き、そこに読み書き可能なアクセス権を設定する。 これで準備OK。他には何もいりません。 ////////////////////////// diff --git a/book/05-distributed-git/sections/contributing.asc b/book/05-distributed-git/sections/contributing.asc index 92a3a2cc..560af394 100644 --- a/book/05-distributed-git/sections/contributing.asc +++ b/book/05-distributed-git/sections/contributing.asc @@ -1259,10 +1259,17 @@ sending 2 messages 100% (2/2) done ---- +////////////////////////// At this point, you should be able to go to your Drafts folder, change the To field to the mailing list you're sending the patch to, possibly CC the maintainer or person responsible for that section, and send it off. +////////////////////////// +そうすると、下書きがGmailのドラフトフォルダーに保存されているはずです。宛先をメーリングリストのアドレスに変更し、可能であればCCにプロジェクトのメンテナか該当部分の担当者を追加してから送信しましょう。 +////////////////////////// You can also send the patches through an SMTP server. As before, you can set each value separately with a series of `git config` commands, or you can add them manually in the sendemail section in your `~/.gitconfig` file: +////////////////////////// +また、パッチをSMTPサーバー経由で送信することもできます。 +設定方法についてはIMAPサーバーの場合と同様に、`git config`コマンドを使って設定項目を個別に入力してもいいですし、`~/.gitconfig`ファイルのsendemailセクションを直接編集してもかまいません。 [source,ini] ---- @@ -1273,7 +1280,10 @@ As before, you can set each value separately with a series of `git config` comma smtpserverport = 587 ---- +////////////////////////// After this is done, you can use `git send-email` to send your patches: +////////////////////////// +設定が終われば、`git send-email`コマンドを使ってパッチを送信できます。 [source,console] ---- diff --git a/book/06-github/sections/1-setting-up-account.asc b/book/06-github/sections/1-setting-up-account.asc index 4a378cb8..510d233c 100644 --- a/book/06-github/sections/1-setting-up-account.asc +++ b/book/06-github/sections/1-setting-up-account.asc @@ -26,7 +26,7 @@ Go ahead and do this, it's pretty important (as we'll see later). その次に出てくるのは、有償プランへのアップグレードについての説明です。 とりあえずは無視してもかまいません。 先ほど入力したメールアドレスが正しいことを確認するために、GitHubからのメールが届きます。 -メールの指示に従ってください。後で見るとおり、これはとても需要です。 +メールの指示に従ってください。後で見るとおり、これはとても重要です。 [NOTE] ////////////////////////// diff --git a/book/07-git-tools/sections/revision-selection.asc b/book/07-git-tools/sections/revision-selection.asc index e1bb264d..101886bd 100644 --- a/book/07-git-tools/sections/revision-selection.asc +++ b/book/07-git-tools/sections/revision-selection.asc @@ -393,7 +393,7 @@ Now that you can specify individual commits, let’s see how to specify ranges o This is particularly useful for managing your branches – if you have a lot of branches, you can use range specifications to answer questions such as, ``What work is on this branch that I haven’t yet merged into my main branch?'' ////////////////////////// 個々のコミットを指定できるようになったので、次はコミットの範囲を指定する方法を覚えていきましょう。 -これは、ブランチをマージするときに便利です。たくさんのブランチを持っている場合など「で、このブランチの作業のなかでまだメインブランチにマージしていないのはどれだったっけ?」といった疑問に答えるために範囲指定を使えます。 +これは、ブランチをマージするときに便利です。たくさんのブランチがある場合など、「で、このブランチの作業のなかでまだメインブランチにマージしていないのはどれだったっけ?」といった疑問を解決するために範囲指定を使えます。 ////////////////////////// ===== Double Dot