From 79b9db539d18d832f67e2e3f22416c6ad7c70d4a Mon Sep 17 00:00:00 2001 From: booleans-oss Date: Thu, 10 Mar 2022 00:14:03 +0400 Subject: [PATCH] checkout to switch (zh-tw) --- .../2-github-basics/translations/README.zh-tw.md | 8 ++++---- quiz-app/src/assets/translations/zh_tw.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/1-getting-started-lessons/2-github-basics/translations/README.zh-tw.md b/1-getting-started-lessons/2-github-basics/translations/README.zh-tw.md index 9bce5d02..63294615 100644 --- a/1-getting-started-lessons/2-github-basics/translations/README.zh-tw.md +++ b/1-getting-started-lessons/2-github-basics/translations/README.zh-tw.md @@ -202,10 +202,10 @@ git branch [分支名稱] ``` -1. **切換到該工作分支** 使用指令 `git checkout` 來切換到特定分支,更新分支的檔案狀態: +1. **切換到該工作分支** 使用指令 `git switch` 來切換到特定分支,更新分支的檔案狀態: ```bash - git checkout [分支名稱] + git switch [分支名稱] ``` 1. **程式設計** 記得追蹤你所更改的地方,利用下列的指令來告訴 Git: @@ -220,14 +220,14 @@ 1. **將工作分支與 `main` 分支進行合併** 當工作完成時,你會需要將工作分支與 `main` 分支進行合併。 `main` 分支可能會被他人更新,在合併之前記得更新主分支: ```bash - git checkout main + git switch main git pull ``` 這項步驟可能會面臨到 _衝突(conflicts)_,代表 Git 無法將本地的更動作 _合併(combine)_ 。此時你需要執行下列的指令: ```bash - git checkout [分支名稱] + git switch [分支名稱] git merge main ``` diff --git a/quiz-app/src/assets/translations/zh_tw.json b/quiz-app/src/assets/translations/zh_tw.json index 19bf285f..3ee3eeaf 100644 --- a/quiz-app/src/assets/translations/zh_tw.json +++ b/quiz-app/src/assets/translations/zh_tw.json @@ -209,11 +209,11 @@ "questionText": "如何切換分支?", "answerOptions": [ { - "answerText": "git switch [分支名稱]", + "answerText": "git checkout [分支名稱]", "isCorrect": "false" }, { - "answerText": "git checkout [分支名稱]", + "answerText": "git switch [分支名稱]", "isCorrect": "true" }, {