mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-28 06:35:01 +02:00
merge main
This commit is contained in:
commit
5ea13c9bce
4 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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`,",
|
||||
"但是如果你想尝试一下新命令,我们的应用也是支持的!并且你可以从<a href=\"https://git-scm.com/docs/git-switch\" target=\"_blank\">这里</a>学到更多关于新命令的内容。*",
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
|
|
|
@ -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."',
|
||||
"",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue