mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-20 21:35:42 +02:00
1390 lines
62 KiB
JavaScript
1390 lines
62 KiB
JavaScript
exports.level = {
|
||
"goalTreeString": "{\"branches\":{\"main\":{\"target\":\"C2\",\"id\":\"main\",\"remoteTrackingBranchID\":null},\"side\":{\"target\":\"C4\",\"id\":\"side\",\"remoteTrackingBranchID\":null},\"bugFix\":{\"target\":\"C7\",\"id\":\"bugFix\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"},\"C4\":{\"parents\":[\"C3\"],\"id\":\"C4\"},\"C5\":{\"parents\":[\"C3\"],\"id\":\"C5\"},\"C6\":{\"parents\":[\"C5\"],\"id\":\"C6\"},\"C7\":{\"parents\":[\"C6\"],\"id\":\"C7\"}},\"tags\":{\"v0\":{\"target\":\"C0\",\"id\":\"v0\",\"type\":\"tag\"},\"v1\":{\"target\":\"C3\",\"id\":\"v1\",\"type\":\"tag\"}},\"HEAD\":{\"target\":\"bugFix\",\"id\":\"HEAD\"}}",
|
||
"solutionCommand": "git commit ",
|
||
"startTree": "{\"branches\":{\"main\":{\"target\":\"C2\",\"id\":\"main\",\"remoteTrackingBranchID\":null},\"side\":{\"target\":\"C4\",\"id\":\"side\",\"remoteTrackingBranchID\":null},\"bugFix\":{\"target\":\"C6\",\"id\":\"bugFix\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"},\"C4\":{\"parents\":[\"C3\"],\"id\":\"C4\"},\"C5\":{\"parents\":[\"C3\"],\"id\":\"C5\"},\"C6\":{\"parents\":[\"C5\"],\"id\":\"C6\"}},\"tags\":{\"v0\":{\"target\":\"C0\",\"id\":\"v0\",\"type\":\"tag\"},\"v1\":{\"target\":\"C3\",\"id\":\"v1\",\"type\":\"tag\"}},\"HEAD\":{\"target\":\"bugFix\",\"id\":\"HEAD\"}}",
|
||
"onlyEvaluateAsserts": true,
|
||
"goalAsserts": {
|
||
"bugfix": [
|
||
function (data) {
|
||
return data.__num_commits_upstream > 5;
|
||
},
|
||
]
|
||
},
|
||
"name": {
|
||
"en_US": "Git Describe",
|
||
"fr_FR": "Git describe",
|
||
"de_DE": "Git Describe",
|
||
"ja": "Git Describe",
|
||
"es_AR": "Git Describe",
|
||
"es_MX": "Git Describe",
|
||
"es_ES": "Git Describe",
|
||
"pt_BR": "Git Describe",
|
||
"gl": "Git Describe",
|
||
"zh_TW": "git describe",
|
||
"zh_CN": "Git Describe",
|
||
"ro":"Git Describe",
|
||
"ru_RU": "Git describe",
|
||
"ko": "Git describe(묘사)",
|
||
"uk": "Git Describe",
|
||
"vi": "Git Describe (mô tả)",
|
||
"sl_SI": "Git Describe",
|
||
"it_IT": "Git Describe",
|
||
"pl": "Git describe",
|
||
"tr_TR": "git describe",
|
||
"ko": "Git 설명",
|
||
"ta_IN": "Git விவரம்"
|
||
},
|
||
"hint": {
|
||
"en_US": "Just commit once on bugFix when you're ready to move on",
|
||
"fr_FR": "Faites un commit sur bugFix quand vous êtes prêt",
|
||
"de_DE": "Committe nur einmal auf bugFix, wenn du soweit bist",
|
||
"ja": "次に進む準備が整ったなら、bugFixに対して一回commitしてください",
|
||
"es_AR": "Simplemente commiteá una vez en bugFix cuando estés listo para seguir",
|
||
"es_MX": "Simplemente crea un commit en la rama bugFix cuando estés listo para continuar",
|
||
"es_ES": "Simplemente crea un commit en la rama bugFix cuando estés listo para seguir",
|
||
"pt_BR": "Simplesmente commite uma vez em bugFix quando quiser parar de experimentar",
|
||
"gl": "Simplemente fai commit en bugFix cando estés listo para continuar.",
|
||
"zh_TW": "當你要移動的時候,只要在 bugFix 上面 commit 就好了",
|
||
"zh_CN": "当你准备好时,在 bugFix 分支上面提交一次就可以了",
|
||
"ro": "Când ești gata să continui, fă un commit în bugFix",
|
||
"ru_RU": "Когда закончишь, просто сделай commit",
|
||
"ko": "다음으로 넘어가고 싶으면 bugFix를 한번 커밋하면 됩니다.",
|
||
"uk": "Просто зроби один коміт в bugFix коли ти будеш готовий іти далі",
|
||
"vi": "Đơn giản là hãy commit một lẩn ở bugFix là xong rồi",
|
||
"sl_SI": "Commitaj enkrat na bugFix, ko boš pripravljen za nadaljevanje.",
|
||
"it_IT": "Fai un commit da bugFix per procedere",
|
||
"pl": "Scommituj raz na bugFix, żeby przejść dalej",
|
||
"ta_IN": "நீங்கள் தொடர தயாராக இருக்கும்போது bugFix இல் ஒருமுறை commit செய்யவும்.",
|
||
"tr_TR": "Hazır olduğunuzda bugFix üzerine sadece bir commit atmanız yeterlidir."
|
||
},
|
||
"startDialog": {
|
||
"en_US": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Because tags serve as such great \"anchors\" in the codebase, git has a command to *describe* where you are relative to the closest \"anchor\" (aka tag). And that command is called `git describe`!",
|
||
"",
|
||
"Git describe can help you get your bearings after you've moved many commits backwards or forwards in history; this can happen after you've completed a git bisect (a debugging search) or when sitting down at the computer of a coworker who just got back from vacation."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe takes the form of:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Where `<ref>` is anything git can resolve into a commit. If you don't specify a ref, git just uses where you're checked out right now (`HEAD`).",
|
||
"",
|
||
"The output of the command looks like:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Where `tag` is the closest ancestor tag in history, `numCommits` is how many commits away that tag is, and `<hash>` is the hash of the commit being described."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Let's look at a quick example. For this tree below:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"The command `git describe main` would output:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Whereas `git describe side` would output:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"That's pretty much all there is to git describe! Try describing a few of the locations in this level to get a feel for the command.",
|
||
"",
|
||
"Once you're ready, just go ahead and commit once to finish the level. We're giving you a freebie :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"fr_FR": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git describe",
|
||
"",
|
||
"Parce ce que les tags sont de très bonnes références dans le code, Git a une commande pour *décrire* (describe) la différence entre le commit et le tag le plus récent. Cette commande s'appelle `git describe` !",
|
||
"",
|
||
"Git describe peut vous aider lorsque vous vous êtes beaucoup déplacé; cela peut arriver après un git bisect (chercher l'apparition d'un bug) ou lorsque vous revenez de vacances après 3 semaines sur l'ordinateur d'un collègue."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe s'écrit comme suit :",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"où `<ref>` est n'importe quelle chose que Git peut résoudre en un commit. Si vous ne spécifiez pas de ref, `HEAD` est pris par défaut.",
|
||
"",
|
||
"Le résultat de la commande ressemble à :",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"où `tag` est le tag le plus proche dans l'historique, `numCommits` le nombre de commits avec le tag, et `<hash>` le hash/identifiant du commit décrit."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Regardons un petit exemple. Prenons cet arbre :"
|
||
],
|
||
"afterMarkdowns": [
|
||
"La commande`git describe main` donne le résultat :",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"alors que `git describe side` donne :",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Ceci résume bien git describe ! Amusez-vous à utiliser cette commande avec d'autres endroits dans ce niveau pour bien comprendre describe.",
|
||
"",
|
||
"Lorsque vous serez prêt, faites simplement un commit pour finir le niveau. Un petit niveau bonus :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"zh_TW": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### git describe",
|
||
"",
|
||
"因為 tag 在 commit tree 上表示的是一個錨點,git 有一個指令可以用來*顯示*離你最近的錨點(也就是 tag),而且這個指令叫做 `git describe`!",
|
||
"",
|
||
"當你已經完成了一個 `git bisect`(一個找尋有 bug 的 commit 的指令),或者是當你使用的是你跑去度假的同事的電腦時, `git describe` 可以幫助你了解你離最近的 tag 差了多少個 commit。"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`git describe` 的使用方式:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"`<ref>` 是任何一個可以被 git 解讀成 commit 的位置,如果你沒有指定的話,git 會以你目前所在的位置為準(`HEAD`)。",
|
||
"",
|
||
"指令的輸出就像這樣:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"`<tag>` 表示的是離 `<ref>` 最近的 tag, `numCommits` 是表示這個 tag 離 `<ref>` 有多少個 commit, `<hash>` 表示的是你所給定的 `<ref>` 所表示的 commit 的前七個 id。"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"讓我們來看一個例子,對於下面的 tree:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"`git describe main` 會輸出:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"`git describe side` 會輸出:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`git describe` 就是這樣了!試著在這個關卡指定幾個位置來感受一下這個指令吧!",
|
||
"",
|
||
"當你完成的時候,只要一個 commit 就可以結束這個關卡,我們會給你一個免費贈品:P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"zh_CN": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"由于标签在代码库中起着“锚点”的作用,Git 还为此专门设计了一个命令用来**描述**离你最近的锚点(也就是标签),它就是 `git describe`!",
|
||
"",
|
||
"Git Describe 能帮你在提交历史中移动了多次以后找到方向;当你用 `git bisect`(一个查找产生 Bug 的提交记录的指令)找到某个提交记录时,或者是当你坐在你那刚刚度假回来的同事的电脑前时, 可能会用到这个命令。"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`git describe` 的语法是:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"`<ref>` 可以是任何能被 Git 识别成提交记录的引用,如果你没有指定的话,Git 会使用你目前所在的位置(`HEAD`)。",
|
||
"",
|
||
"它输出的结果是这样的:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"`tag` 表示的是离 `ref` 最近的标签, `numCommits` 是表示这个 `ref` 与 `tag` 相差有多少个提交记录, `hash` 表示的是你所给定的 `ref` 所表示的提交记录哈希值的前几位。",
|
||
"",
|
||
"当 `ref` 提交记录上有某个标签时,则只输出标签名称"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"让我们来看一个例子,对于下面的提交树:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"`git describe main` 会输出:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"`git describe side` 会输出:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`git describe` 就是这样了!试着在这个关卡指定几个位置来感受一下这个命令吧!",
|
||
"",
|
||
"当你准备进行下一关时,只要提交一次就可以通过这个关卡。算是我们送你的一个小礼物吧 :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"es_AR": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Como los tags sirven tanto para marcar \"hitos\" en el código, git tiene un comando para *describir* (_describe_) dónde estás relativo al \"hito\" más cercano (digamos, \"tag\"). Y ese comamndo se llama ¡`git describe`!",
|
||
"",
|
||
"Git describe puede ayudarte a saber dónde estás después de que te hayas movido varios commits hacia adelante o atrás en la historia. Esto puede pasarte después de que termines un git bisect (una búsqueda que te ayuda a debuggear problemas) o cuando te sentás en la computadora de un compañero de trabajo que recién vuelve de unas vacaciones."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe tiene la siguiente forma:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Donde `<ref>` es cualquier cosa que git puede resolver a un commit. Si no especificás ninguna referencia, git simplemente usa el commit en que estás parado ahora (`HEAD`).",
|
||
"",
|
||
"La salida de ese comando se ve así:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Donde `tag` es el tag más cercano en la historia, `numCommits` dice a cuántos commits de ese tag estás, y `<hash>` es el hash del commit que estás describiendo."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Veamos un ejemplo breve. Para este árbol de commits:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"El comando `git describe main` mostraría:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Mientras que `git describe side` debería mostrar:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"¡Eso es prácticamente todo lo que hay sobre git describe! Probá describiendo algunas referencias en este nivel para amigarte con el comando.",
|
||
"",
|
||
"Cuando quieras, hacé un commit para terminar el nivel. Te estamos dando una gratis :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"es_ES": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Como los tags sirven genial como \"marcas\" en el código, git tiene un comando para _describir_ dónde estás relativo a la \"marca\" (es decir, al \"tag\") más cercana. Y ese comamndo se llama ¡`git describe`!",
|
||
"",
|
||
"`git describe` puede ayudarte a saber dónde estás después de haberte movido varios commits hacia adelante o atrás en la historia. Esto puede pasarte después de que termines un _git bisect_ (una búsqueda de debug) o cuando te sientas delante de la computadora de un compañero de trabajo que acaba de volver de vacaciones."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe tiene la siguiente forma:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Donde `<ref>` es cualquier cosa que git puede resolver a un commit. Si no especificas ninguna referencia, git simplemente usa el commit en el que estás en ese momento (`HEAD`).",
|
||
"",
|
||
"La salida de ese comando se ve así:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Donde `tag` es el tag más cercano en la historia, `numCommits` es a cuántos commits de ese tag estás, y `<hash>` es el hash del commit que está siendo descrito."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Veamos un ejemplo rápido. Para este árbol de commits:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"El comando `git describe main` mostraría:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Mientras que `git describe side` mostraría:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"¡Eso es prácticamente todo lo que hay sobre git describe! Prueba describiendo algunas _ubicaciones_ en este nivel para familiarizarte con el comando.",
|
||
"",
|
||
"Cuando estés listo, crea un commit para terminar el nivel. Te estamos dejando este nivel de regalo. :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"es_ES": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Como los tags sirven tanto para marcar \"hitos\" en el código, git tiene un comando para *describir* (_describe_) dónde estás relativo al \"hito\" más cercano (digamos, \"tag\"). Y ese comamndo se llama ¡`git describe`!",
|
||
"",
|
||
"Git describe puede ayudarte a saber dónde estás después de que te hayas movido varios commits hacia adelante o atrás en la historia. Esto puede pasarte después de que termines un git bisect (una búsqueda que te ayuda a debuggear problemas) o cuando te sientas delante de la computadora de un compañero de trabajo que acaba de volver de unas vacaciones."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe tiene la siguiente forma:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Donde `<ref>` es cualquier cosa que git puede resolver a un commit. Si no especificas ninguna referencia, git simplemente usa el commit en el que estás parado ahora (`HEAD`).",
|
||
"",
|
||
"La salida de ese comando se ve así:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Donde `tag` es el tag más cercano en la historia, `numCommits` dice a cuántos commits de ese tag estás, y `<hash>` es el hash del commit que estás describiendo."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Veamos un ejemplo breve. Para este árbol de commits:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"El comando `git describe main` mostraría:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Mientras que `git describe side` debería mostrar:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"¡Eso es prácticamente todo lo que hay sobre git describe! Prueba con algunas referencias en este nivel para familiarizarte con el comando.",
|
||
"",
|
||
"Cuando estés listo, crea un commit para terminar el nivel. Te estamos dando una gratis :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"pt_BR": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Devido ao fato de as tags servirem como \"âncoras\" tão boas no código, o Git tem um comando para *descrever* onde você está com relação à \"âncora\" (tag) mais próxima. Esse comando é chamado `git describe`!",
|
||
"",
|
||
"O git describe pode ajudar a recuperar a sua orientação depois de você ter se movido muitos commits para trás ou para frente no histórico; isso pode acontecer depois de você completar um git bisect (uma busca para debug) ou quando se sentar no computador de um colega que acabou de voltar de férias."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"O git describe é chamado da seguinte forma:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Onde `<ref>` é qualquer coisa que o git possa resolver como uma referência a um commit. Se você não especificar o ref, o Git usa simplesmente o commit atual (`HEAD`).",
|
||
"",
|
||
"A saída do comando é mais ou menos assim:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Onde `tag` é a tag ancestral mais próxima no histórico, `numCommits` é o número de commits de distância da tag, e `<hash>` é o hash do commit sendo descrito."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Vejamos um exemplo rápido. Para a árvore abaixo:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"O comando `git describe main` daria a saída:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Enquanto `git describe side` daria:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"É basicamente disso que se trata o git describe! Tente descrever alguns locais da árvore para sentir como o comando se comporta.",
|
||
"",
|
||
"Uma vez que você estiver satisfeito, apenas faça um commit que o nível será finalizado. Essa é de graça :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"gl": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Como as tags fan a función de \"áncora\" no repositorio, Git ten un comando para *describir* ónde podes estar ti en relación á \"áncora\" (tag) máis próxima. Ese comando chámase `git describe`!",
|
||
"",
|
||
"Git describe pode axudar a recuperar a túa posición despois de mover moitos commits para atrás ou para adiante na historia; esto pode suceder depois de que fagas un git bisect (unha búsqueda para atopar erros) ou cando te sentas no ordenador dun colega que chegou das vacacións."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe lánzase do seguinte xeito:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Onde `<ref>` é qualquera cousa que git poida resolver como unha referencia a un commit. Se non especificas a ref, git usará o commit actual no que se esté traballando (`HEAD`).",
|
||
"",
|
||
"A resposta do comando é algo semellante a esto:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Onde `tag` é a tag anterior máis próxima na historia, `numCommits` é o número de commits de distancia ó tag, e `<hash>` é o hash do commit no que estamos."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Vexamos un exemplo rápido. Para a árbore de abaixo:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"O comando `git describe main` daría a saída:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Mentres que `git describe side` daría:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"¡Básicamente é iso do que trata git describe! Intenta descubrir algúns locais da árbore para sentir como se comporta o comando.",
|
||
"",
|
||
"Cando estés listo, fai un commit para que o nivel remate. Esa é a gracia."
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"de_DE": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Weil Tags so super als \"Anker\" im Repository dienen können, bietet Git einen Befehl um zu *beschreiben*, wo du dich relativ zum nächsten \"Anker\" (also Tag) befindest. Und der heißt `git describe`.",
|
||
"",
|
||
"Er hilft dir dabei, dir einen Überblick zu verschaffen, nachdem du viele Commits im Log zurück- oder vorgegangen bist; das kann vorkommen, nachdem du ein `git bisect` (eine Fehlersuche) abgeschlossen hast oder wenn du dich an den Rechner eines Kollegen setzt, der gerade aus dem Urlaub gekommen ist."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Der Befehl ist folgendermaßen aufgebaut:",
|
||
"",
|
||
"`git describe <Ref-Name>`",
|
||
"",
|
||
"Dabei ist `<Ref-Name>` jeder beliebige Name, der einem Commit zugeordnet ist (Branch, Tag etc). Wenn du keinen angibst, benutzt Git `HEAD`, also den aktuellen Checkout.",
|
||
"",
|
||
"Die Befehlsausgabe sieht so aus:",
|
||
"",
|
||
"`<Tag-Name>_<Anzahl Commits>_g<Hash>`",
|
||
"",
|
||
"`<Tag-Name>` ist dabei der nächstliegende Tag in den Vorgänger-Commits, `<Anzahl Commits>` zeigt an, wie viele Commits dieses Tag entfernt ist und `<Hash>` ist das SHA des Commits, auf den HEAD zeigt.",
|
||
"",
|
||
"**Achtung**: `<Anzahl Commits>` und `<Hash>` erscheint nur, wenn HEAD nicht auf ein Tag zeigt. `git describe` verarbeitet standardmäßig nur annotierte Tags. Um nicht annotierte Tags zu sehen, verwende bitte `git describe --tags`."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Schauen wir uns das schnell an einem Beispiel an. Für den folgenden Baum:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"Der Befehl `git describe main` würde folgendes ausgeben:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Wohingegen `git describe side` dies ausgeben würde:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Das ist so ziemlich alles, was es über `git describe` zu wissen gibt. Versuch ein paar Orte in diesem Level damit auszugeben, um ein Gefühl dafür zu bekommen.",
|
||
"",
|
||
"Sobald du fertig bist, mach einfach einen Commit um den Level abzuschließen. Der geht auf's Haus. :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"ja": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"タグは、ソースリストの優秀な「アンカー(標識)」として作用するので、Gitには最も近く関係のある「アンカー」(タグの別名)を*記述するため*のコマンドがあります。そして、そのコマンドは`git describe`と呼ばれています!",
|
||
"",
|
||
"Gitの`describe`は、あなたが大量のコミットの中を移動するとき、今どこにいるかを知るのを助けてくれます(このような状況は、例えばあなたがデバッグ検索コマンドの一つ`git bisect`を走らせ終わった後や、同僚が休暇から帰ってきて自分の席に座るときに起こります)。"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Gitの`describe`は、以下の形式をとります:",
|
||
"",
|
||
"`git describe <参照>`",
|
||
"",
|
||
"`<参照>`には、Gitが解釈可能なコミットの参照表現(ブランチやタグの指定、コミットハッシュなど)をいれます。もし、何も入力しなかった場合、Gitは現在の位置のコミット(`HEAD`)を使います。",
|
||
"",
|
||
"コマンドの結果は以下のようになります:",
|
||
"",
|
||
"`<タグ>_<コミット数>_g<ハッシュ>`",
|
||
"",
|
||
"`<タグ>`には履歴の一番最新のタグ名が、`<コミット数>`にはそのタグから幾つのコミットがあったか、`<ハッシュ>`はそのコミットのハッシュがそれぞれ入ります。"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"軽い例を見てみましょう。この木においての例は以下のようになります:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"コマンド`git describe main`の結果は以下のようになります:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"さらに`git describe side`の結果は以下のようになります:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`describe`によってGitの情報が簡潔に全て記述されます!このレベルでは、このコマンドの感触をつかむため幾つかの場所で`describe`をしてみてください。",
|
||
"",
|
||
"終わったら、最新のコミットに行き一度コミットを行えばこのレベルを終了することができます。この先では、いくつかの挑戦課題を用意しています :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"ro": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Pentru că tag-urile servesc ca niște \"ancore\" excelente în cod, git are o comandă pentru a *descrie* unde te afli în raport cu cea mai apropiată \"ancoră\" (adică tag). Și acea comandă se numește `git describe`!",
|
||
"",
|
||
"Git describe te poate ajuta să-ți recapeți orientarea după ce ai făcut multe commit-uri înainte sau înapoi în istorie; acest lucru se poate întâmpla după ce ai terminat un git bisect (o căutare de depanare) sau când te așezi la calculatorul unui coleg care tocmai s-a întors din vacanță."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe are următoarea formă:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Unde `<ref>` este orice lucru pe care git îl poate rezolva într-un commit. Dacă nu specifici un ref, git folosește pur și simplu unde ești acum (`HEAD`).",
|
||
"",
|
||
"Rezultatul comenzii arată cam așa:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Unde `tag` este cel mai apropiat tag din istorie, `numCommits` este numărul de commit-uri până la acel tag, iar `<hash>` este hash-ul commit-ului pe care îl descrii.",
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Să vedem un exemplu rapid. Pentru acest arbore de mai jos:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"Comanda `git describe main` ar afișa:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"În timp ce `git describe side` ar afișa:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Cam asta este tot ce trebuie să știi despre git describe! Încearcă să descrii câteva locații din acest nivel pentru a te obișnui cu comanda.",
|
||
"",
|
||
"Când ești gata, fă un singur commit pentru a termina nivelul. Este un cadou gratis de la noi :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"ru_RU": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Теги являются прекрасными ориентирами в истории изменений, поэтому в git есть команда, которая показывает, как далеко текущее состояние от ближайшего тега. И эта команда называется `git describe`",
|
||
"",
|
||
"Git describe помогает сориентироваться после отката на много коммитов по истории изменений. Такое может случиться, когда вы сделали `git bisect` или если вы недавно вернулись из отпуска =)"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe выглядит примерно так:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Где `ref` — это что-либо, что указывает на конкретный коммит. Если не указать `ref`, то git будет считать, что указано текущее положение (`HEAD`).",
|
||
"",
|
||
"Вывод команды выглядит примерно так:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Где `tag` – это ближайший тег в истории изменений, `numCommits` – это на сколько далеко мы от этого тега, а `hash` – это хеш коммита, который описывается."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Посмотрим на простой пример. Для дерева, показанного ниже:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"Команда `git describe main` выведет:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Тогда как `git describe side` выведет:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Это, в общем-то, всё, что можно сказать про `git describe`. Попробуй выполнить команду на нескольких коммитах.",
|
||
"",
|
||
"Как только наиграешься, просто сделай один коммит, и уровень будет пройден."
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"ko": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"커밋 트리에서 태그가 훌륭한 \"닻\"역할을 하기 때문에, git에는 여러분이 가장 가까운 \"닻(태그)\"에 비해 상대적으로 어디에 위치해있는지 *describe(묘사)*해주는 명령어가 있습니다. 이 명령어는 `git describe` 입니다!",
|
||
"",
|
||
"Git describe는 커밋 히스토리에서 앞 뒤로 여러 커밋을 이동하고 나서 커밋 트리에서 방향감각을 다시 찾는데 도움을 줍니다; 이런 상황은 git bisect(문제가 되는 커밋을 찾는 명령어라고 간단히 생각하자)를 하고 나서라든가 휴가를 다녀온 동료의 컴퓨터에 앉는경우가 있습니다."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe 는 다음의 형태를 가지고 있습니다:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"`<ref>`에는 commit을 의미하는 그 어떤것이던 쓸 수 있습니다. 만약 ref를 특정 지어주지 않으면, git은 그냥 지금 체크아웃된곳을 사용합니다 (`HEAD`).",
|
||
"",
|
||
"명령어의 출력은 다음과 같은 형태로 나타납니다:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"`tag`는 가장 가까운 부모 태그를 나타냅니다. `numCommits`은 그 태그가 몇 커밋 멀리있는지를 나타냅니다. `<hash>`는 묘사하고있는 커밋의 해시를 나타냅니다."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"간단한 예제를 확인해 봅시다. 아래의 트리에서:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"`git describe main` 명령은 다음을 출력합니다:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"`git describe side`는 다음을 출력합니다:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"이정도면 git describe를 충분히 활용할 수 있습니다! 이 레벨의 몇 지점을 describe 명령어를 통해 확인해보면서 느낌을 익혀 봅시다.",
|
||
"",
|
||
"준비가 되면 커밋을 한번해서 레벨을 종료하세요. 자유롭게 연습해보세요 :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"uk": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Через те, що таги є такими чудовими \"орієнтирами\" по коду, git також має команду *описати* (describe) де ти є відносно найближчого \"орієнтира\" (тобто тага). І ця команда називається `git describe`!",
|
||
"",
|
||
"Git describe допоможе тобі знайти себе після того як ти перестрибнеш на кілька комітів по історії вперед чи назад; це може статися після того як ти закінчив git bisect (пошук-дебаггер) чи коли тебе попросили підійти до колеги, котрий щойно прийшов з відпустки."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe має наступну форму:",
|
||
"",
|
||
"`git describe <посилання>`",
|
||
"",
|
||
"Де `<посилання>` -- це будь-що, що вказує на конкретний коміт. Якщо ти не вкажеш посилання, git використає поточну локацію (`HEAD`).",
|
||
"",
|
||
"Вивід команди виглядає як:",
|
||
"",
|
||
"`<таг>_<к-ть комітів>_g<хеш>`",
|
||
"",
|
||
"де `таг` -- це найближчий попередній таг з історії; `к-ть комітів` -- це наскільки далеко цей таг в історії, а `<хеш>` -- це хеш коміту, який описується."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Розгляньмо короткий приклад. Для дерева нижче:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"Команда `git describe main` виведе:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"коли `git describe side` виведе:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Ось і все що ти маєш знати про git describe. Спробуй виконати describe для різних місць в дереві комітів щоб набити руку.",
|
||
"",
|
||
"Як будеш готовий, просто закоміть щось щоб закінчити цей рівень. Трохи шари :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"vi": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Mô tả của Git",
|
||
"",
|
||
"Bởi gì thẻ đóng vai trò như là \"mỏ neo\" trên cây lịch sử rất tốt rồi, Git cũng có lệnh để *mô tả* tương quan của bạn đến vị trí \"mỏ neo\" (thẻ) gần nhất. Và đó là `git describe`!",
|
||
"",
|
||
"`git describe` có thể giúp bạn định hướng sau khi dịch chuyển qua lại nhiều lần trên cây lịch sử; đặc biệt là sau khi sử dụng `git bisect` (công cụ tìm kiếm lỗi của Git) hoặc khi sử dụng máy của đồng nghiệp mới đi nghỉ mát về."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Cú pháp sử dụng Git describe như sau:",
|
||
"",
|
||
"`git describe <thamchiếu>`",
|
||
"",
|
||
"Trong đó `<thamchiếu>` là bất kỳ thứ gì mà Git có thể dùng để xác định commit. Nếu bạn không chỉ định tham chiếu, Git sẽ dùng vị trí hiện tại của bạn (`HEAD`).",
|
||
"",
|
||
"Đầu ra của câu lệnh sẽ như sau:",
|
||
"",
|
||
"`<thẻ>_<sốLượngCommit>_g<mãBăm>`",
|
||
"",
|
||
"Trong đó `<thẻ>` là thẻ tổ tiên gần nhất, `<sốLượngCommit>` là số lượng commit tính từ tham chiếu đến thẻ, và `<mãBăm>` là mã băm của commit được mô tả."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Cùng xem nhanh một ví dụ trên cây lịch sử phía dưới:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"Câu lệnh `git describe main` sẽ cho kết quả:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Trong khi `git describe side` sẽ cho kết quả:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Từng đó thông tin là khá đủ về git describe! Hãy thử dùng `git describe` trên vài vị trí để hiểu về lệnh này.",
|
||
"",
|
||
"Một khi bạn đã sẵn sàng thì chỉ cần commit 1 lần là qua bài này. Bài này dễ chơi rồi nhé :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"sl_SI": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Ker tagi služijo kot tako odlična \"sidra\" v kodi, ima git ukaz za *opis* kje si, relativno glede na najbližje \"sidro\" (aka tag). Temu ukazu se reče `git describe`!",
|
||
"",
|
||
"Git describe se ti lahko pomaga orientirati, če si premikal veliko commitov naprej in nazaj po zgodovini; to se lahko zgodi, če si končal git bisekcijo (iskanje kot debuggiranje) ali če se usedeš za sodelavčev računalnik, ko je ravno prišel z dopusta."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe izgleda takole:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Kjer je `<ref>` karkoli kar lahko git prepozna kot commit. Če ne podaš ref-a, git uporabi mesto, kjer si trenutno checkoutan (`HEAD`).",
|
||
"",
|
||
"Izpis ukaza je sledeč:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Kjer je `tag` najbližji prednik v zgodovini, `numCommits` je število commitov oddaljenosti tag-a in `<hash>` je hash commita, ki ga opisujemo."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Poglejmo hiter primer. Za drevo spodaj:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"Bi ukaz `git describe main` izpisal:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Ukaz `git describe side` pa bi vrnil:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"To je približno vse, kar se tiče git describe-a! Poizkusi za občutek opisati nekaj lokacij v tej stopnji.",
|
||
"",
|
||
"Ko si pripravljen, samo enkrat commitaj, da zaključiš stopnjo. Tole ti častimo :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"pl": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git describe",
|
||
"",
|
||
"Ponieważ znaczniki służą jako świetne \"kotwice\" w bazie kodu, git ma polecenie *opisujące*, gdzie jesteś w stosunku do najbliższej \"kotwicy\". I jest to `git describe`!",
|
||
"",
|
||
"Polecenie `git describe` może pomóc ci zorientować się w sytuacji, gdy przesuniesz wiele commitów wstecz lub do przodu w historii; może się to zdarzyć po użyciu `git bisect` (na potrzeby debugowania) lub gdy siedzisz przy komputerze współpracownika, który właśnie wrócił z wakacji."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe przyjmuje postać:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Gdzie `<ref>` jest czymkolwiek, co git może odnieść do commita. Jeśli nie podasz `<ref>`, git użyje aktualnie checkoutowanego miejsca (`HEAD`).",
|
||
"",
|
||
"Wynik polecenia wygląda następująco:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"`tag` jest znacznikiem najbliższego przodka w historii, `numCommits` jest liczbą commitów od tego znacznika, a `<hash>` jest haszem opisywanego commitu."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Przyjrzyjmy się krótkiemu przykładowi. Dla tego drzewa poniżej:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"polecenie `git describe main` dałoby wynik:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"a `git describe side` dałoby wynik:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"To w zasadzie wszystko, co musisz wiedzieć o `git describe`! Spróbuj opisać kilka miejsc na tym poziomie, aby wyczuć to polecenie.",
|
||
"",
|
||
"Kiedy zechesz przejść dalej, po prostu zrób jeden commit, aby ukończyć poziom. Masz to w gratisie :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"it_IT": {
|
||
childViews: [
|
||
{
|
||
type: "ModalAlert",
|
||
options: {
|
||
markdowns: [
|
||
"### Git Describe",
|
||
"",
|
||
'Visto che i tag fungono da "ancore", si può usare il comando `git describe` per capire dove ci si trova in riferimento all\'"ancora" (tag) più vicina!',
|
||
"",
|
||
"Git describe aiuta ad orientarti dopo che hai creato molti commit su per giù nell'albero; oppure dopo che hai concluso un git bisect (per ricercare bug) o quando utilizzi il computer di un collega che è appena tornato dalle vacanze.",
|
||
],
|
||
},
|
||
},
|
||
{
|
||
type: "ModalAlert",
|
||
options: {
|
||
markdowns: [
|
||
"Git describe ha questa forma:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"Dove `<ref>` è qualunque cosa che può indicare un commit. Se non specifichi un ref, git farà riferimento alla tua posizione attuale (`HEAD`).",
|
||
"",
|
||
"L'output del comando sarà:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Dove `tag` è il tag antenato più vicino, `numCommits` corrisponde al numero di commit tra ref e il tag, e `<hash>` è l'hash del commit che è descritto.",
|
||
],
|
||
},
|
||
},
|
||
{
|
||
type: "GitDemonstrationView",
|
||
options: {
|
||
beforeMarkdowns: [
|
||
"Vediamo un esempio semplice. In quest'albero:",
|
||
],
|
||
afterMarkdowns: [
|
||
"Il comando `git describe main` genera come output:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Mentre `git describe side` genererà:",
|
||
"",
|
||
"`v2_1_gC4`",
|
||
],
|
||
command: "git tag v2 C3",
|
||
beforeCommand:
|
||
"git commit; go -b side HEAD~1; gc; gc; git tag v1 C0",
|
||
},
|
||
},
|
||
{
|
||
type: "ModalAlert",
|
||
options: {
|
||
markdowns: [
|
||
"Questo è più o meno quanto fa git describe! Prova questo comando in vari punti in questo livello per prendere confidenza.",
|
||
"",
|
||
"Quando hai finito, procedi e crea un commit per concludere il livello. Consideralo un omaggio della casa :P",
|
||
],
|
||
},
|
||
},
|
||
],
|
||
},
|
||
"ta_IN": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"குறிச்சொற்கள் (tags) குறியீட்டு தளத்தில் (codebase) சிறந்த \"தொங்கல்\" (anchors) புள்ளிகளாகச் செயல்படுவதால், நீங்கள் மிக அருகிலுள்ள \"தொங்கலுக்கு\" (அka குறிச்சொற்களுக்கு) ஒப்பாக எங்கு உள்ளீர்கள் என்பதை *விவரிக்க* ஒரு கட்டளையை Git வழங்குகிறது. அந்த கட்டளைக்கு பெயர் `git describe`!",
|
||
"",
|
||
"`git describe` கட்டளை நீங்கள் commit வரலாற்றில் முன்னோக்கி அல்லது பின்னோக்கி நகர்ந்த பிறகு உங்கள் நிலையைப் புரிந்துகொள்ள உதவும்; இது ஒரு `git bisect` (பிழைத் தேடல்) செயல்முறையை முடித்த பிறகு அல்லது விடுமுறையில் இருந்து திரும்பிய வேலைப்பார்வையாளர் ஒருவர் கம்ப்யூட்டருக்கு அருகில் அமர்ந்தபோது நடக்கக்கூடும்."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`git describe` கட்டளையின் வடிவம் இதுவாக இருக்கும்:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"`<ref>` என்பது Git ஒரு commit ஆக தீர்வு காணக்கூடிய எந்தப் பொருளும் ஆகும். நீங்கள் ஒரு ref ஐ குறிப்பிடாவிட்டால், Git நீங்கள் தற்போது எங்கு checkout செய்துள்ளீர்களோ (அதாவது `HEAD`) அதைத் தேர்ந்தெடுக்கிறது.",
|
||
"",
|
||
"இந்த கட்டளையின் வெளியீடு இப்படித் தெரியும்:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"`<tag>` என்பது commit வரலாற்றில் மிக அருகிலுள்ள முன்னோடி குறிச்சொல் (tag), `<numCommits>` அது எத்தனை commit களின் தூரத்தில் உள்ளதைக் குறிக்கிறது, மற்றும் `<hash>` விவரிக்கப்பட்ட commit இன் hash ஆகும்."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"விரைவான ஒரு உதாரணத்தைப் பார்ப்போம். கீழே உள்ள மரத்திற்காக:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"`git describe main` கட்டளை வெளியீடு இதுவாக இருக்கும்:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"இதேபோல், `git describe side` வெளியீடு இதுவாக இருக்கும்:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe பற்றிய அடிப்படை இவைதான்! இந்த கட்டளைக்கு பழக, இந்த நிலையில் சில இடங்களை விவரிக்க முயற்சி செய்யுங்கள்.",
|
||
"",
|
||
"தயார் என்றால், ஒரு முறை commit செய்து நிலையை முடிக்கலாம். உங்களுக்கு இலவசமாக வழங்கிய ஒன்று :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"tr_TR": {
|
||
"childViews": [
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"### Git Describe",
|
||
"",
|
||
"Etiketler kod tabanında harika \"çapa noktaları\" olarak hizmet ettiğinden, Git sizin en yakın \"çapa\"ya (yani etikete) göre nerede olduğunuzu *tanımlamak* için bir komut sunar. Bu komutun adı `git describe`!",
|
||
"",
|
||
"`git describe` komutu, geçmişte ileriye veya geriye birçok commit aldıktan sonra yerinizi belirlemenize yardımcı olabilir; bu, bir `git bisect` (hata ayıklama arama) işlemini tamamladıktan sonra veya tatilden dönen bir iş arkadaşınızın bilgisayarında oturduğunuzda gerçekleşebilir."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"`git describe` komutu şu formda kullanılır:",
|
||
"",
|
||
"`git describe <ref>`",
|
||
"",
|
||
"`<ref>` git'in bir commit'e çözümleyebileceği herhangi bir şeydir. Eğer bir ref belirtmezseniz, git şu an nereye checkout yapmışsanız (genellikle `HEAD`) onu kullanır.",
|
||
"",
|
||
"Komutun çıktısı şu şekilde görünür:",
|
||
"",
|
||
"`<tag>_<numCommits>_g<hash>`",
|
||
"",
|
||
"Burada `tag`, geçmişteki en yakın ata etikettir, `numCommits`, bu etikete olan commit uzaklığıdır ve `<hash>` tanımlanan commit'in hash değeridir."
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"type": "GitDemonstrationView",
|
||
"options": {
|
||
"beforeMarkdowns": [
|
||
"Hızlı bir örneğe göz atalım. Aşağıdaki ağaç için:"
|
||
],
|
||
"afterMarkdowns": [
|
||
"`git describe main` komutu şu çıktıyı verecektir:",
|
||
"",
|
||
"`v1_2_gC2`",
|
||
"",
|
||
"Öte yandan `git describe side` komutu şu çıktıyı verecektir:",
|
||
"",
|
||
"`v2_1_gC4`"
|
||
],
|
||
"command": "git tag v2 C3",
|
||
"beforeCommand": "git commit; go -b side HEAD~1; gc; gc; git tag v1 C0"
|
||
}
|
||
},
|
||
{
|
||
"type": "ModalAlert",
|
||
"options": {
|
||
"markdowns": [
|
||
"Git describe hakkında bilmeniz gerekenler bu kadar! Komuta alışmak için bu seviyedeki birkaç yeri tanımlamayı deneyin.",
|
||
"",
|
||
"Hazır olduğunuzda, bir kez commit yaparak seviyesi tamamlayabilirsiniz. Küçük bir jest bizden size :P"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
},
|
||
}
|
||
};
|