mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
Merge Japanese translation ings! That wasn't too bad Issue #82
This commit is contained in:
parent
2957cdf966
commit
dce569165d
14 changed files with 584 additions and 4 deletions
|
@ -3,12 +3,14 @@ exports.level = {
|
|||
"solutionCommand": "git branch bugFix;git checkout bugFix",
|
||||
"name": {
|
||||
"en_US": "Branching in Git",
|
||||
"ja": "Gitのブランチ",
|
||||
"ko": "Git에서 브랜치 쓰기",
|
||||
"fr_FR": "Gérer les branches avec Git",
|
||||
"zh_CN": "Git开分支"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Make a new branch with \"git branch [name]\" and check it out with \"git checkout [name]\"",
|
||||
"ja": "ブランチの作成(\"git branch [ブランチ名]\")と、チェックアウト(\"git checkout [ブランチ名]\")",
|
||||
"fr_FR": "Faites une nouvelle branche avec \"git branch [nom]\" positionnez-vous dans celle-ci avec \"git checkout [nom]\"",
|
||||
"zh_CN": "用 'git branch [新分支名字]' 来创建新分支,并用 'git checkout [新分支]' 切换到新分支",
|
||||
"ko": "\"git branch [브랜치명]\"으로 새 브랜치를 만들고, \"git checkout [브랜치명]\"로 그 브랜치로 이동하세요"
|
||||
|
@ -95,6 +97,84 @@ exports.level = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"ja": {
|
||||
"childViews": [
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"## Gitのブランチ",
|
||||
"",
|
||||
"Gitではコミットだけでなく、ブランチもまた信じられないほど軽量です。ブランチとは単に特定のコミットを指示したポインタにしか過ぎません。Gitの達人は決まってこう言うのは、そのためです:",
|
||||
"",
|
||||
"```",
|
||||
"早めに、かつ頻繁にブランチを切りなさい",
|
||||
"```",
|
||||
"",
|
||||
"どれほど多くのブランチを作ってもストレージやメモリを全然使わないので、ブランチを肥大化させるよりも論理的に分割していく方が簡単なのです。",
|
||||
"",
|
||||
"ブランチとコミットをあわせて使い始めると、これら2つのフィーチャがどのように連動して機能するかがわかるでしょう。ここではとりあえず、ブランチは基本的には「あるコミットとその親のコミットたちを含めた全てのコミット」のことを呼ぶと覚えておいてください。"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"では実際にブランチがどのようなものかを見ていきましょう。",
|
||||
"",
|
||||
"`newImage`という名前の新しいブランチを切ってみることにします。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"以上。必要な手順はこれだけです。いま作成された`newImage`ブランチは`C1`コミットを指しています。"
|
||||
],
|
||||
"command": "git branch newImage",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"この新しいブランチに何か変更を加えてみましょう。次のボタンを押してください。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"あれ?`newImage`ではなくて`master`ブランチが移動してしまいました。これは、私たちが`newImage`のブランチ上で作業していなかったためです。どのブランチで作業しているかは、アスタリスク(*)がついてるかどうかで分かります。"
|
||||
],
|
||||
"command": "git commit",
|
||||
"beforeCommand": "git branch newImage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"今度は作業したいブランチ名をgitに伝えてみましょう。",
|
||||
"",
|
||||
"```",
|
||||
"git checkout [ブランチ名]",
|
||||
"```",
|
||||
"",
|
||||
"このようにして、コミットする前に新しいブランチへと作業ブランチを移動することができます。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"できましたね。今度は新しいブランチに対して変更を記録することができました。"
|
||||
],
|
||||
"command": "git checkout newImage; git commit",
|
||||
"beforeCommand": "git branch newImage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"OK! もうどんなブランチでも切れますね。このウィンドウを閉じて、",
|
||||
"`bugFix`という名前のブランチを作成し、そのブランチをチェックアウトしてみましょう。"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"fr_FR": {
|
||||
"childViews": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue