Merge pull request #899 from masterX89/feature/git-switch-Chinese-site

This commit is contained in:
Peter Cottle 2021-12-21 18:28:04 -05:00 committed by GitHub
commit 2f03e1161e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -830,6 +830,16 @@ exports.level = {
"beforeCommand": "git branch newImage" "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", "type": "ModalAlert",
"options": { "options": {