mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-29 23:24:44 +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
|
@ -20,10 +20,12 @@ exports.level = {
|
|||
"name": {
|
||||
"ko": "커밋들 갖고 놀기",
|
||||
"en_US": "Juggling Commits",
|
||||
"ja": "Juggling Commits",
|
||||
"zh_CN": "提交变换戏法"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "The first command is git rebase -i HEAD~2",
|
||||
"ja": "最初に打つコマンドはgit rebase -i HEAD~2",
|
||||
"ko": "첫번째 명령은 git rebase -i HEAD~2 입니다",
|
||||
"zh_CN": "第一个命令是 'git rebase -i HEAD~2'"
|
||||
},
|
||||
|
@ -69,6 +71,45 @@ exports.level = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"ja": {
|
||||
"childViews": [
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"## Commitsをやりくりする",
|
||||
"",
|
||||
"開発中に頻繁に起こるケースをもう1つ考えます。ある変更(`newImage`)とまた別の変更(`caption`)があって、それらに依存関係があるとします。この一連の変更が一列に積み重なっているとします。",
|
||||
"",
|
||||
"ここでトリッキーなのは、以前のコミットに対して微修正をかけなければならないケースがあるということです。今回の教材でも、過去のコミットであるにも関わらず`newImage`ブランチに僅かな修正を加えるような設計の修正が入ったとしましょう。"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"この困難な状況を、以下の手順で克服することを考えます:",
|
||||
"",
|
||||
"* `git rebase -i`を使って順番を変更する。これで、変更をかけたいコミットを一番先頭に持ってくる。",
|
||||
"* `commit --amend`コマンドで僅かな変更を行う",
|
||||
"* `git rebase -i`コマンドを再度使って、先頭に持ってきていたコミットを元に戻す",
|
||||
"* 最後に、レベルクリアのためにmasterブランチを先頭に持ってくる",
|
||||
"",
|
||||
"クリアのための方法はいくつもありますが(cherry-pickを使うこともできます)、別の回答はまた後程の章で見ることにんして、今回は上記の方法でやってみることにしましょう。"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"最後に、ゴール時点での状態に気を付けてください。今回2回ほどコミットを動かしますから、コミットへのポインタにはアポストロフィ(')が追加されます。commit --amendコマンドの実行でできたコミットには更にもう1つのアポストロフィが追加されます。 "
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"zh_CN": {
|
||||
"childViews": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue