aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2019-11-15 11:22:55 +0900
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2019-11-14 18:22:55 -0800
commitc19e4da8af6954c70760ef3803fbf729d007c1d8 (patch)
tree4a4bc2b50b0d0e6222a611c0b20015cd63f190f5
parent519df78cdbf7211b9e1ac6b961b0e10bb5164914 (diff)
downloadqmk_firmware-c19e4da8af6954c70760ef3803fbf729d007c1d8.tar.gz
qmk_firmware-c19e4da8af6954c70760ef3803fbf729d007c1d8.zip
[Docs] Japanese translation of docs/ja/newbs_best_practices.md (#7337)
* Mark same as in new document #7231 * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * comment out the same marks * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * update docs/ja/newbs.md, docs/ja/newbs_best_practices.md * update docs/ja/newbs_best_practices.md * update docs/ja/newbs_best_practices.md * update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * update docs/ja/*.md's comment * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md * Update docs/ja/newbs_best_practices.md Co-Authored-By: shela <shelaf@users.noreply.github.com>
-rw-r--r--docs/ja/newbs.md5
-rw-r--r--docs/ja/newbs_best_practices.md181
-rw-r--r--docs/ja/newbs_building_firmware.md3
-rw-r--r--docs/ja/newbs_building_firmware_configurator.md3
-rw-r--r--docs/ja/newbs_flashing.md3
-rw-r--r--docs/ja/newbs_getting_started.md3
-rw-r--r--docs/ja/newbs_learn_more_resources.md3
-rw-r--r--docs/ja/newbs_testing_debugging.md3
8 files changed, 153 insertions, 51 deletions
diff --git a/docs/ja/newbs.md b/docs/ja/newbs.md
index ec6e278ee..d1043a4a1 100644
--- a/docs/ja/newbs.md
+++ b/docs/ja/newbs.md
@@ -1,8 +1,9 @@
1# QMK 初心者ガイド 1# QMK 初心者ガイド
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: ed0575fc8:docs/newbs.md 5 original document: ed0575fc8:docs/newbs.md
5 $ git diff ed0575fc8 HEAD docs/newbs.md 6 git diff ed0575fc8 HEAD docs/newbs.md | cat
6--> 7-->
7 8
8QMK は、メカニカルキーボード用の強力なオープンソースファームウェアです。 9QMK は、メカニカルキーボード用の強力なオープンソースファームウェアです。
@@ -23,7 +24,7 @@ QMK は[多くの趣味のキーボード](http://qmk.fm/keyboards/)をサポー
23* [オンライン GUI を使用して初めてのファームウェアを構築する](newbs_building_firmware_configurator.md) 24* [オンライン GUI を使用して初めてのファームウェアを構築する](newbs_building_firmware_configurator.md)
24* [ファームウェアを書きこむ](newbs_flashing.md) 25* [ファームウェアを書きこむ](newbs_flashing.md)
25* [テストとデバッグ](newbs_testing_debugging.md) 26* [テストとデバッグ](newbs_testing_debugging.md)
26* [Git 良の](newbs_best_practices.md) 27* [QMK における Git ](newbs_best_practices.md)
27* [さらに学ぶための学習リソース](newbs_learn_more_resources.md) 28* [さらに学ぶための学習リソース](newbs_learn_more_resources.md)
28 29
29このガイドは、これまでソフトウェアをコンパイルしたことがない人を支援することに特化しています。 30このガイドは、これまでソフトウェアをコンパイルしたことがない人を支援することに特化しています。
diff --git a/docs/ja/newbs_best_practices.md b/docs/ja/newbs_best_practices.md
index ebb7d0fab..2e90ffcab 100644
--- a/docs/ja/newbs_best_practices.md
+++ b/docs/ja/newbs_best_practices.md
@@ -1,35 +1,60 @@
1# Best Practices 1<!-- # Best Practices -->
2# QMK における Git 運用作法
2 3
3<!--- 4<!---
4 original document: ed0575fc8:docs/newbs_best_practices.md 5 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
5 $ git diff ed0575fc8 HEAD docs/newbs_best_practices.md 6 original document: e75919960:docs/newbs_best_practices.md
7 git diff e75919960 HEAD docs/newbs_best_practices.md | cat
6--> 8-->
7 9
8## Or, "How I Learned to Stop Worrying and Love Git." 10<!-- ## Or, "How I Learned to Stop Worrying and Love Git." -->
11## または、如何にして私は心配することをやめて Git を愛することを学んだか。
9 12
10This document aims to instruct novices in the best ways to have a smooth experience in contributing to QMK. We will walk through the process of contributing to QMK, detailing some ways to make this task easier, and then later we'll break some things in order to teach you how to fix them. 13<!-- _Almost the same as #7231:25fdbf2a0:newbs_git_best_practices.md L5_ -->
14<!-- This document aims to instruct novices in the best ways to have a smooth experience in contributing to QMK. We will walk through the process of contributing to QMK, detailing some ways to make this task easier, and then later we'll break some things in order to teach you how to fix them. -->
15この文書は、QMK への貢献をスムーズに行なう最もよい方法を初心者に教えることを目的としています。
16QMK に貢献するプロセスを順を追って説明し、この作業を簡単にするいくつかの方法を詳しく説明します。
17その後、意図的に一部を壊してみせて、それらを修正する方法を教えます。
11 18
12This document assumes a few things: 19<!-- This document assumes a few things: -->
20このドキュメントは以下のことを前提としています:
13 21
141. You have a GitHub account, and have [forked the qmk_firmware repository](getting_started_github.md) to your account. 22<!-- _Same as #7231:25fdbf2a0:newbs_git_best_practices.md L9_ -->
152. You've [set up your build environment](newbs_getting_started.md?id=environment-setup). 23<!-- 1. You have a GitHub account, and have [forked the qmk_firmware repository](getting_started_github.md) to your account. -->
24<!-- 2. You've [set up your build environment](newbs_getting_started.md?id=environment-setup). -->
25<!-- #7231:da7d49246: 2. You've set up both [your build environment](newbs_getting_started.md?id=set-up-your-environment) and [QMK](newbs_getting_started.md?id=set-up-qmk). -->
16 26
271. あなたは GitHub アカウントがあり、アカウントに [qmk_firmware リポジトリをフォーク](getting_started_github.md) している。
282. あなたは、[環境構築](newbs_getting_started.md#環境構築) と [QMK の設定](newbs_getting_started.md#qmk-の設定) を両方とも完了している。
17 29
18## Your fork's master: Update Often, Commit Never 30<!-- ## Your fork's master: Update Often, Commit Never -->
31## あなたのフォークの master ブランチ: 更新は頻繁に、コミットはしないこと
19 32
20It is highly recommended for QMK development, regardless of what is being done or where, to keep your `master` branch updated, but ***never*** commit to it. Instead, do all your changes in a development branch and issue pull requests from your branches when you're developing. 33<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L3_ -->
34<!-- It is highly recommended for QMK development, regardless of what is being done or where, to keep your `master` branch updated, but ***never*** commit to it. Instead, do all your changes in a development branch and issue pull requests from your branches when you're developing. -->
35QMK の開発では、何がどこで行われているかにかかわらず、`master` ブランチを最新の状態に保つことを強くお勧めします、しかし `master` ブランチには***絶対に直接コミットしないでください***。
36代わりに、あなたのすべての変更は開発ブランチで行い、あなたが開発する時にはそのブランチからプルリクエストを発行します。
21 37
22To reduce the chances of merge conflicts &mdash; instances where two or more users have edited the same part of a file concurrently &mdash; keep your `master` branch relatively up-to-date, and start any new developments by creating a new branch. 38<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L5_ -->
39<!-- To reduce the chances of merge conflicts &mdash; instances where two or more users have edited the same part of a file concurrently &mdash; keep your `master` branch relatively up-to-date, and start any new developments by creating a new branch. -->
40マージの競合 &mdash; これは 2人以上のユーザーがファイルの同じ部分をそれぞれ異なる編集をして統合できなくなった状態 &mdash; の可能性を減らすため `master` ブランチをなるべく最新の状態に保ち、新しいブランチを作成して新しい開発を開始します。
23 41
24### Updating your master branch 42<!-- ### Updating your master branch -->
43### あなたの master ブランチを更新する
25 44
26To keep your `master` branch updated, it is recommended to add the QMK Firmware repository ("repo") as a remote repository in git. To do this, open your Git command line interface and enter: 45<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L9_ -->
46<!-- To keep your `master` branch updated, it is recommended to add the QMK Firmware repository ("repo") as a remote repository in git. To do this, open your Git command line interface and enter: -->
47`master` ブランチを最新の状態に保つには、git のリモートリポジトリとして QMK ファームウェアのリポジトリ(以降、QMK リポジトリ)を追加することをお勧めします。
48これを行うには、Git コマンドラインインターフェイスを開き、次のように入力します。
27 49
28``` 50```
29git remote add upstream https://github.com/qmk/qmk_firmware.git 51git remote add upstream https://github.com/qmk/qmk_firmware.git
30``` 52```
31 53
32To verify that the repository has been added, run `git remote -v`, which should return the following: 54<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L15_ -->
55<!-- To verify that the repository has been added, run `git remote -v`, which should return the following: -->
56リポジトリが追加されたことを確認するには、`git remote -v` を実行します。
57次のように表示されます。(訳注: `upstream` は`上流`という意味です。)
33 58
34``` 59```
35$ git remote -v 60$ git remote -v
@@ -39,9 +64,15 @@ upstream https://github.com/qmk/qmk_firmware.git (fetch)
39upstream https://github.com/qmk/qmk_firmware.git (push) 64upstream https://github.com/qmk/qmk_firmware.git (push)
40``` 65```
41 66
42Now that this is done, you can check for updates to the repo by running `git fetch upstream`. This retrieves the branches and tags &mdash; collectively referred to as "refs" &mdash; from the QMK repo, which now has the nickname `upstream`. We can now compare the data on our fork `origin` to that held by QMK. 67<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L25_ -->
68<!-- Now that this is done, you can check for updates to the repo by running `git fetch upstream`. This retrieves the branches and tags &mdash; collectively referred to as "refs" &mdash; from the QMK repo, which now has the nickname `upstream`. We can now compare the data on our fork `origin` to that held by QMK. -->
69これが完了すると、`git fetch upstream` を実行してリポジトリの更新を確認できます。
70このコマンドは `upstream` というニックネームを持つ QMK リポジトリから、ブランチとタグ &mdash; "refs" と総称されます &mdash; を取得します。
71これで、あなたのフォーク `origin` のデータを QMK が保持するデータと比較できます。
43 72
44To update your fork's master, run the following, hitting the Enter key after each line: 73<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L27_ -->
74<!-- To update your fork's master, run the following, hitting the Enter key after each line: -->
75あなたのフォークの `master` を更新するには、次を実行します、各行の後にEnterキーを押してください:
45 76
46``` 77```
47git checkout master 78git checkout master
@@ -50,76 +81,128 @@ git pull upstream master
50git push origin master 81git push origin master
51``` 82```
52 83
53This switches you to your `master` branch, retrieves the refs from the QMK repo, downloads the current QMK `master` branch to your computer, and then uploads it to your fork. 84<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L36_ -->
85<!-- This switches you to your `master` branch, retrieves the refs from the QMK repo, downloads the current QMK `master` branch to your computer, and then uploads it to your fork. -->
86これにより、あなたの `master` ブランチに切り替わり、QMK リポジトリから 'refs' を取得し、現在の QMK の `master` ブランチをコンピュータにダウンロードしてから、あなたのフォークにアップロードします。
54 87
55### Making Changes 88<!-- ### Making Changes -->
89### 変更を行なう
56 90
57To make changes, create a new branch by entering: 91<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L40_ -->
92<!-- To make changes, create a new branch by entering: -->
93変更するには、以下を入力して新しいブランチを作成します:
58 94
59``` 95```
60git checkout -b dev_branch 96git checkout -b dev_branch
61git push --set-upstream origin dev_branch 97git push --set-upstream origin dev_branch
62``` 98```
63 99
64This creates a new branch named `dev_branch`, checks it out, and then saves the new branch to your fork. The `--set-upstream` argument tells git to use your fork and the `dev_branch` branch every time you use `git push` or `git pull` from this branch. It only needs to be used on the first push; after that, you can safely use `git push` or `git pull`, without the rest of the arguments. 100<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L47_ -->
101<!-- This creates a new branch named `dev_branch`, checks it out, and then saves the new branch to your fork. The `--set-upstream` argument tells git to use your fork and the `dev_branch` branch every time you use `git push` or `git pull` from this branch. It only needs to be used on the first push; after that, you can safely use `git push` or `git pull`, without the rest of the arguments. -->
102これにより、`dev_branch` という名前の新しいブランチが作成され、チェックアウトされ、新しいブランチがあなたのフォークに保存されます。
103`--set-upstream` 引数は、このブランチから `git push` または `git pull` を使用するたびに、あなたのフォークと `dev_branch` ブランチを使用するように git に指示します。
104この引数は最初のプッシュでのみ使用する必要があります。
105その後、残りの引数なしで `git push` または `git pull` を安全に使用できます。
65 106
66!> With `git push`, you can use `-u` in place of `--set-upstream` &mdash; `-u` is an alias for `--set-upstream`. 107<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L49_ -->
108<!-- With `git push`, you can use `-u` in place of `--set-upstream` &mdash; `-u` is an alias for `--set-upstream`. -->
109!> `git push` では、`-set-upstream` の代わりに `-u` を使用できます、 `-u` は `--set-upstream` のエイリアスです。
67 110
68You can name your branch nearly anything you want, though it is recommended to name it something related to the changes you are going to make. 111<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L51_ -->
112<!-- You can name your branch nearly anything you want, though it is recommended to name it something related to the changes you are going to make. -->
113ブランチにはほぼ任意の名前を付けることができますが、あなたが行なう変更を表す名前を付けることをお勧めします。
69 114
70By default `git checkout -b` will base your new branch on the branch that is checked out. You can base your new branch on an existing branch that is not checked out by adding the name of the existing branch to the command: 115<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L53_ -->
116<!-- By default `git checkout -b` will base your new branch on the branch that is checked out. You can base your new branch on an existing branch that is not checked out by adding the name of the existing branch to the command: -->
117デフォルトでは、`git checkout -b`は、今チェックアウトされているブランチに基づいて新しいブランチを作成します。
118コマンド末尾に既存のブランチの名前を追加指定することにより、チェックアウトされていない既存のブランチを基にして新しいブランチを作成できます:
71 119
72``` 120```
73git checkout -b dev_branch master 121git checkout -b dev_branch master
74``` 122```
75 123
76Now that you have a development branch, open your text editor and make whatever changes you need to make. It is recommended to make many small commits to your branch; that way, any change that causes issues can be more easily traced and undone if needed. To make your changes, edit and save any files that need to be updated, add them to Git's *staging area*, and then commit them to your branch: 124<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L59_ -->
125<!-- Now that you have a development branch, open your text editor and make whatever changes you need to make. It is recommended to make many small commits to your branch; that way, any change that causes issues can be more easily traced and undone if needed. To make your changes, edit and save any files that need to be updated, add them to Git's *staging area*, and then commit them to your branch: -->
126これで開発ブランチができたのでテキストエディタを開き必要な変更を加えます。
127ブランチに対して多くの小さなコミットを行うことをお勧めします。
128そうすることで、問題を引き起こす変更をより簡単に特定し必要に応じて元に戻すことができます。
129変更を加えるには、更新が必要なファイルを編集して保存し、Git の *ステージングエリア* に追加してから、ブランチにコミットします:
77 130
78``` 131```
79git add path/to/updated_file 132git add path/to/updated_file
80git commit -m "My commit message." 133git commit -m "My commit message."
81``` 134```
82 135
83`git add` adds files that have been changed to Git's *staging area*, which is Git's "loading zone." This contains the changes that are going to be *committed* by `git commit`, which saves the changes to the repo. Use descriptive commit messages so you can know what was changed at a glance. 136<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L66_ -->
137<!-- `git add` adds files that have been changed to Git's *staging area*, which is Git's "loading zone." This contains the changes that are going to be *committed* by `git commit`, which saves the changes to the repo. Use descriptive commit messages so you can know what was changed at a glance. -->
138`git add`は、変更されたファイルを Git の *ステージングエリア* に追加します。
139これは、Git の「ロードゾーン」です。
140これには、`git commit` によって *コミット* される変更が含まれており、リポジトリへの変更が保存されます。
141変更内容が一目でわかるように、説明的なコミットメッセージを使用します。
84 142
85!> If you've changed a lot of files, but all the files are part of the same change, you can use `git add .` to add all the changed files that are in your current directory, rather than having to add each file individually. 143<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L68_ -->
144<!-- !> If you've changed a lot of files, but all the files are part of the same change, you can use `git add .` to add all the changed files that are in your current directory, rather than having to add each file individually. -->
145!> 多くのファイルを変更したが、すべてのファイルが同じ変更の一部である場合、各ファイルを個別に追加するのではなく、 `git add .` を使用して、現在のディレクトリにあるすべての変更されたファイルを追加できます。
86 146
87### Publishing Your Changes 147<!-- ### Publishing Your Changes -->
148### 変更を公開する
88 149
89The last step is to push your changes to your fork. To do this, enter `git push`. Git now publishes the current state of `dev_branch` to your fork. 150<!-- _Same as #7231:25fdbf2a0:newbs_git_using_your_master_branch.md L72_ -->
151<!-- The last step is to push your changes to your fork. To do this, enter `git push`. Git now publishes the current state of `dev_branch` to your fork. -->
152最後のステップは、変更をフォークにプッシュすることです。これを行うには、`git push`と入力します。
153Git は `dev_branch` の現在の状態をフォークに公開します。
90 154
155<!-- ## Resolving Merge Conflicts -->
156## マージの競合の解決
91 157
92## Resolving Merge Conflicts 158<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L3_ -->
159<!-- Sometimes when your work in a branch takes a long time to complete, changes that have been made by others conflict with changes you have made to your branch when you open a pull request. This is called a *merge conflict*, and is what happens when multiple people edit the same parts of the same files. -->
160ブランチでの作業の完了に時間がかかる場合、他の人が行った変更が、プルリクエストを開いたときにブランチに加えた変更と競合することがあります。
161これは *マージの競合* と呼ばれ、複数の人が同じファイルの同じ部分を編集すると発生します。
93 162
94Sometimes when your work in a branch takes a long time to complete, changes that have been made by others conflict with changes you have made to your branch when you open a pull request. This is called a *merge conflict*, and is what happens when multiple people edit the same parts of the same files. 163<!-- ### Rebasing Your Changes -->
164### 変更のリベース
95 165
96### Rebasing Your Changes 166<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L9_ -->
167<!-- A *rebase* is Git's way of taking changes that were applied at one point, reversing them, and then applying the same changes to another point. In the case of a merge conflict, you can rebase your branch to grab the changes that were made between when you created your branch and the present time. -->
168*リベース* は、ある時点で適用された変更を取得し、それらを元に戻し、次に同じ変更を別のポイントに適用する Git の方法です。
169マージの競合が発生した場合、ブランチをリベースして、ブランチを作成してから現在までに行われた変更を取得できます。
97 170
98A *rebase* is Git's way of taking changes that were applied at one point, reversing them, and then applying the same changes to another point. In the case of a merge conflict, you can rebase your branch to grab the changes that were made between when you created your branch and the present time. 171<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L11_ -->
99 172<!-- To start, run the following: -->
100To start, run the following: 173開始するには、次を実行します:
101 174
102``` 175```
103git fetch upstream 176git fetch upstream
104git rev-list --left-right --count HEAD...upstream/master 177git rev-list --left-right --count HEAD...upstream/master
105``` 178```
106 179
107The `git rev-list` command entered here returns the number of commits that differ between the current branch and QMK's master branch. We run `git fetch` first to make sure we have the refs that represent the current state of the upstream repo. The output of the `git rev-list` command entered returns two numbers: 180<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L18_ -->
181<!-- The `git rev-list` command entered here returns the number of commits that differ between the current branch and QMK's master branch. We run `git fetch` first to make sure we have the refs that represent the current state of the upstream repo. The output of the `git rev-list` command entered returns two numbers: -->
182ここに入力された `git rev-list` コマンドは、現在のブランチと QMK の master ブランチで異なるコミットの数を返します。
183最初に `git fetch` を実行して、upstream リポジトリの現在の状態を表す refs があることを確認します。
184入力された `git rev-list` コマンドの出力は2つの数値を返します:
108 185
109``` 186```
110$ git rev-list --left-right --count HEAD...upstream/master 187$ git rev-list --left-right --count HEAD...upstream/master
1117 35 1887 35
112``` 189```
113 190
114The first number represents the number of commits on the current branch since it was created, and the second number is the number of commits made to `upstream/master` since the current branch was created, and thus, the changes that are not recorded in the current branch. 191<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L25_ -->
192<!-- The first number represents the number of commits on the current branch since it was created, and the second number is the number of commits made to `upstream/master` since the current branch was created, and thus, the changes that are not recorded in the current branch. -->
193最初の数字は、現在のブランチが作成されてからのコミット数を表し、2番目の数字は、現在のブランチが作成されてから `upstream/master` に対して行われたコミットの数であり、したがって、現在のブランチに記録されていない変更です。
115 194
116Now that the current states of both the current branch and the upstream repo are known, we can start a rebase operation: 195<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L27_-->
196<!-- Now that the current states of both the current branch and the upstream repo are known, we can start a rebase operation: -->
197現在のブランチと upstream リポジトリの両方の現在の状態がわかったので、リベース操作を開始できます:
117 198
118``` 199```
119git rebase upstream/master 200git rebase upstream/master
120``` 201```
121 202
122This tells Git to undo the commits on the current branch, and then reapply them against QMK's master branch. 203<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L33_ -->
204<!-- This tells Git to undo the commits on the current branch, and then reapply them against QMK's master branch. -->
205これにより、Git は現在のブランチのコミットを取り消してから、QMK の master ブランチに対してコミットを再適用します。
123 206
124``` 207```
125$ git rebase upstream/master 208$ git rebase upstream/master
@@ -140,7 +223,10 @@ You can instead skip this commit: run "git rebase --skip".
140To abort and get back to the state before "git rebase", run "git rebase --abort". 223To abort and get back to the state before "git rebase", run "git rebase --abort".
141``` 224```
142 225
143This tells us that we have a merge conflict, and gives the name of the file with the conflict. Open the conflicting file in your text editor, and somewhere in the file, you'll find something like this: 226<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L54_ -->
227<!-- This tells us that we have a merge conflict, and gives the name of the file with the conflict. Open the conflicting file in your text editor, and somewhere in the file, you'll find something like this: -->
228これにより、マージの競合があることがわかり、競合のあるファイルの名前が示されます。
229テキストエディタで競合するファイルを開くと、ファイルのどこかに次のような行があります:
144 230
145``` 231```
146<<<<<<< HEAD 232<<<<<<< HEAD
@@ -150,19 +236,28 @@ This tells us that we have a merge conflict, and gives the name of the file with
150>>>>>>> Commit #1 236>>>>>>> Commit #1
151``` 237```
152 238
153The line `<<<<<<< HEAD` marks the beginning of a merge conflict, and the `>>>>>>> Commit #1` line marks the end, with the conflicting sections separated by `=======`. The part on the `HEAD` side is from the QMK master version of the file, and the part marked with the commit message is from the current branch and commit. 239<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L64_ -->
240<!-- The line `<<<<<<< HEAD` marks the beginning of a merge conflict, and the `>>>>>>> Commit #1` line marks the end, with the conflicting sections separated by `=======`. The part on the `HEAD` side is from the QMK master version of the file, and the part marked with the commit message is from the current branch and commit. -->
241行 `<<<<<<< HEAD` はマージ競合の始まりを示し、行 `>>>>>>> commit #1` は終了を示し、競合するセクションは `=======` で区切られます。
242`HEAD` 側の部分はファイルの QMK master バージョンからのものであり、コミットメッセージでマークされた部分は現在のブランチとコミットからのものです。
154 243
155Because Git tracks *changes to files* rather than the contents of the files directly, if Git can't find the text that was in the file previous to the commit that was made, it won't know how to edit the file. Re-editing the file will solve the conflict. Make your changes, and then save the file. 244<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L66_ -->
245<!-- Because Git tracks *changes to files* rather than the contents of the files directly, if Git can't find the text that was in the file previous to the commit that was made, it won't know how to edit the file. Re-editing the file will solve the conflict. Make your changes, and then save the file. -->
246Git はファイルの内容ではなく *ファイルへの変更* を直接追跡するため、Git がコミットの前にファイル内にあったテキストを見つけられない場合、ファイルの編集方法がわかりません。
247ファイルを再編集して、競合を解決します。
248変更を加えてから、ファイルを保存します。
156 249
157``` 250```
158<p>Need help? Email support@webhost.us.</p> 251<p>Need help? Email support@webhost.us.</p>
159``` 252```
160 253
161Now run: 254そしてコマンド実行:
162 255
163``` 256```
164git add conflicting_file_1.txt 257git add conflicting_file_1.txt
165git rebase --continue 258git rebase --continue
166``` 259```
167 260
168Git logs the changes to the conflicting file, and continues applying the commits from our branch until it reaches the end. 261<!-- _Same as #7231:25fdbf2a0:newbs_git_resolving_merge_conflicts.md L79_ -->
262<!-- Git logs the changes to the conflicting file, and continues applying the commits from our branch until it reaches the end. -->
263Git は、競合するファイルへの変更をログに記録し、ブランチのコミットが最後に達するまで適用し続けます。
diff --git a/docs/ja/newbs_building_firmware.md b/docs/ja/newbs_building_firmware.md
index 32a7903fd..5fb10d424 100644
--- a/docs/ja/newbs_building_firmware.md
+++ b/docs/ja/newbs_building_firmware.md
@@ -1,8 +1,9 @@
1# 初めてのファームウェアを構築する(コマンドライン版) 1# 初めてのファームウェアを構築する(コマンドライン版)
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: ed0575fc8:docs/newbs_building_firmware.md 5 original document: ed0575fc8:docs/newbs_building_firmware.md
5 $ git diff ed0575fc8 HEAD docs/newbs_building_firmware.md 6 git diff ed0575fc8 HEAD docs/newbs_building_firmware.md | cat
6--> 7-->
7 8
8ビルド環境をセットアップしたので、カスタムファームウェアのビルドを開始する準備ができました。 9ビルド環境をセットアップしたので、カスタムファームウェアのビルドを開始する準備ができました。
diff --git a/docs/ja/newbs_building_firmware_configurator.md b/docs/ja/newbs_building_firmware_configurator.md
index 0716e26ea..b44504ade 100644
--- a/docs/ja/newbs_building_firmware_configurator.md
+++ b/docs/ja/newbs_building_firmware_configurator.md
@@ -1,8 +1,9 @@
1# QMK Configurator 1# QMK Configurator
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: ed0575fc8:docs/newbs_building_firmware_configurator.md 5 original document: ed0575fc8:docs/newbs_building_firmware_configurator.md
5 $ git diff ed0575fc8 HEAD docs/newbs_building_firmware_configurator.md 6 git diff ed0575fc8 HEAD docs/newbs_building_firmware_configurator.md | cat
6--> 7-->
7 8
8[QMK Configurator](https://config.qmk.fm) は、QMKファームウェアの hex ファイルを生成するオンライングラフィカルユーザーインターフェイスです。 9[QMK Configurator](https://config.qmk.fm) は、QMKファームウェアの hex ファイルを生成するオンライングラフィカルユーザーインターフェイスです。
diff --git a/docs/ja/newbs_flashing.md b/docs/ja/newbs_flashing.md
index 54569e122..0c85514cf 100644
--- a/docs/ja/newbs_flashing.md
+++ b/docs/ja/newbs_flashing.md
@@ -1,8 +1,9 @@
1# ファームウェアを書きこむ 1# ファームウェアを書きこむ
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: ed0575fc8:docs/newbs_flashing.md 5 original document: ed0575fc8:docs/newbs_flashing.md
5 $ git diff ed0575fc8 HEAD docs/newbs_flashing.md 6 git diff ed0575fc8 HEAD docs/newbs_flashing.md | cat
6--> 7-->
7 8
8カスタムファームウェアは出来たので、キーボードに書き込みたくなるでしょう/フラッシュしたくなるでしょう。 9カスタムファームウェアは出来たので、キーボードに書き込みたくなるでしょう/フラッシュしたくなるでしょう。
diff --git a/docs/ja/newbs_getting_started.md b/docs/ja/newbs_getting_started.md
index 653922b6e..a57e6e054 100644
--- a/docs/ja/newbs_getting_started.md
+++ b/docs/ja/newbs_getting_started.md
@@ -1,8 +1,9 @@
1# イントロダクション 1# イントロダクション
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: docs/newbs_getting_started.md 5 original document: docs/newbs_getting_started.md
5 $ git diff 161d469 HEAD docs/newbs_getting_started.md 6 git diff 161d469 HEAD docs/newbs_getting_started.md | cat
6--> 7-->
7 8
8キーボードにはプロセッサが入っており、それはコンピュータに入っているものと大して違わないものです。 9キーボードにはプロセッサが入っており、それはコンピュータに入っているものと大して違わないものです。
diff --git a/docs/ja/newbs_learn_more_resources.md b/docs/ja/newbs_learn_more_resources.md
index 3247d04f7..632cd9100 100644
--- a/docs/ja/newbs_learn_more_resources.md
+++ b/docs/ja/newbs_learn_more_resources.md
@@ -1,8 +1,9 @@
1# 学習リソース 1# 学習リソース
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: ed0575fc8:docs/newbs_learn_more_resources.md 5 original document: ed0575fc8:docs/newbs_learn_more_resources.md
5 $ git diff ed0575fc8 HEAD docs/newbs_learn_more_resources.md 6 git diff ed0575fc8 HEAD docs/newbs_learn_more_resources.md | cat
6--> 7-->
7 8
8これらのリソースは、QMKコミュニティの新しいメンバーに、初心者向けドキュメントで提供されている情報に対する理解を深めることを目的としています。 9これらのリソースは、QMKコミュニティの新しいメンバーに、初心者向けドキュメントで提供されている情報に対する理解を深めることを目的としています。
diff --git a/docs/ja/newbs_testing_debugging.md b/docs/ja/newbs_testing_debugging.md
index 04905755c..a96406187 100644
--- a/docs/ja/newbs_testing_debugging.md
+++ b/docs/ja/newbs_testing_debugging.md
@@ -1,8 +1,9 @@
1# テストとデバッグ 1# テストとデバッグ
2 2
3<!--- 3<!---
4 grep --no-filename "^[ ]*git diff" docs/ja/*.md | sh
4 original document: ed0575fc8:docs/newbs_testing_debugging.md 5 original document: ed0575fc8:docs/newbs_testing_debugging.md
5 $ git diff ed0575fc8 HEAD docs/newbs_testing_debugging.md 6 git diff ed0575fc8 HEAD docs/newbs_testing_debugging.md | cat
6--> 7-->
7 8
8カスタムファームウェアをキーボードへ書き込んだら、テストする準備が整います。運が良ければ全て問題なく動作しているはずですが、もしそうでなければこのドキュメントがどこが悪いのか調べるのに役立ちます。 9カスタムファームウェアをキーボードへ書き込んだら、テストする準備が整います。運が良ければ全て問題なく動作しているはずですが、もしそうでなければこのドキュメントがどこが悪いのか調べるのに役立ちます。