diff --git a/README.md b/README.md index fb543ffe..734b4195 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ You can share a link to LearnGitBranching with an arbitrary set of commands that ### Level Builder -You can build levels with `build level`. The dialog will walk you through the process, and at the end you can `export level` to get a JSON blob. Paste that in a gist or directly into an issue and I can check it out / merge in your changes! You can also share this level directly with friends by having them run "import level" or simply specify a gist ID in the url params like so: +You can build levels with the `build level` command. A dialog will walk you through the process, and at the end it will show you a JSON blob that represents the level you just created. Paste that in a [gist](https://gist.github.com) or directly into an issue and I can check it out / merge in your changes! You can also share this level directly with friends by having them run `import level` and paste the JSON in the resulting text field, or simply send them a custom URL with the the gist ID in the parameters, like so: https://pcottle.github.io/learnGitBranching/?gist_level_id=a84407351f9c9f0cb241 ## Reporting Bugs / Opening Issues diff --git a/src/levels/intro/branching.js b/src/levels/intro/branching.js index 78ab380b..11e6eedd 100644 --- a/src/levels/intro/branching.js +++ b/src/levels/intro/branching.js @@ -830,6 +830,16 @@ exports.level = { "beforeCommand": "git branch newImage" } }, + { + "type": "ModalAlert", + "options": { + "markdowns": [ + "*注意:在 Git 2.23 版本中,引入了一个名为 `git switch` 的新命令,最终会取代 `git checkout`,因为 `checkout` 作为单个命令有点超载(它承载了很多独立的功能)。", + "由于现在很多人还无法使用 `switch`,本次课程仍然使用 `checkout` 而不是 `switch`,", + "但是如果你想尝试一下新命令,我们的应用也是支持的!并且你可以从这里学到更多关于新命令的内容。*", + ] + } + }, { "type": "ModalAlert", "options": { diff --git a/src/levels/intro/merging.js b/src/levels/intro/merging.js index 7b1346bf..7efd546a 100644 --- a/src/levels/intro/merging.js +++ b/src/levels/intro/merging.js @@ -1298,7 +1298,7 @@ exports.level = { markdowns: [ "## Rami e fusione", "", - "Ottimo! Ora sappaimo come funzionano i commit e i rami. Adesso dobbiamo trovare il modo per unire il lavoro di due rami diversi. Questo ci permetterà di creare un nuovo ramo, aggiungere una nuova funzionalità, e poi riunire il tutto.", + "Ottimo! Ora sappiamo come funzionano i commit e i rami. Adesso dobbiamo trovare il modo per unire il lavoro di due rami diversi. Questo ci permetterà di creare un nuovo ramo, aggiungere una nuova funzionalità, e poi riunire il tutto.", "", 'Il primo metodo che vediamo per unire il lavoro è `git merge` (fusione). La fusione in Git crea un commit speciale che possiede due genitori distinti. Un commit con due genitori significa "Voglio unire tutto il lavoro da questo e da quest altro genitore, *e anche* di tutti i loro genitori."', "", diff --git a/src/levels/rampup/detachedHead.js b/src/levels/rampup/detachedHead.js index 371d6975..f5465f3c 100644 --- a/src/levels/rampup/detachedHead.js +++ b/src/levels/rampup/detachedHead.js @@ -1312,7 +1312,7 @@ exports.level = { "", "Prima di tutto dobbiamo parlare di \"HEAD\". HEAD (testa) è il nome simbolico dato al commit selezionato -- in pratica è il commit su cui stai lavorando.", "", - "HEAD punta sempre al commit più recente. La maggiorparte dei commandi git che fanno cambiamenti all'albero dei commit, faranno cambiamento a HEAD.", + "HEAD punta sempre al commit più recente. La maggior parte dei commandi git che fanno cambiamenti all'albero dei commit, faranno cambiamento a HEAD.", "", "Di norma HEAD punta al nome di un ramo (per esempio bugFix). Quando esegui un commit, lo stato di bugFix viene modificato, e questo cambiamento è visibile attraverso HEAD.", ],