-
Notifications
You must be signed in to change notification settings - Fork 322
Update Japanese materials #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Because in this section Project 4 the project was created by `git init` so the default branch is `master`, not `main`.
- Update "getting ready for Class" page - Fix code blocks - Fix displaying icons - Update an example of the issue description
|
@dzeyelid 👋🏽 are you able to paste the local test run screen capture and results in here please. This will help us to keep audit that this PR when merge works as expected and does not break the manual in general. 🙇🏽 |
|
verified the translation. |
|
Translation verified by @junkofujiwara. Good to merge when all test have passed. |
|
@junkofujiwara Thank you for verifying! |
parkerbxyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, thank you so much for these contributions, @dzeyelid! ✨ I left just a few minor suggestions. Once those are incorporated, I think this will be good to go. 😊
| 1. Working locally, switch to `main` branch and pull updates from remote. | ||
|
|
||
| ```sh | ||
| git switch main | ||
| git pull | ||
| ``` | ||
|
|
||
| 1. Fetch the `USERNAME-modify-conflict` branch from remote and switch to the same branch locally. | ||
|
|
||
| ```sh | ||
| git fetch | ||
| git switch USER-modify-conflict | ||
| ``` | ||
|
|
||
| 1. Merge `main` into the feature branch. | ||
|
|
||
| ```sh | ||
| git merge main | ||
| ``` | ||
|
|
||
| 1. When you see there's a conflict, that's OK! The files that have conflicts are listed under `Unmerged Paths`. Type `git status` to verify which file has the conflict. | ||
|
|
||
| ```sh | ||
| git status | ||
| ``` | ||
|
|
||
| 1. Open that file in your text editor, and look for the merge conflict markers. (`<<<<<<<`, `=======`, `>>>>>>>`) | ||
|
|
||
| ```sh | ||
| # Open the file on Visual Studio Code | ||
| code _slides/##-USERNAME.md | ||
| ``` | ||
|
|
||
| 1. Both branches' versions of code are present - pick which one you want to keep, and save the changes. | ||
| 1. Add and commit the saved changes to resolve the merge conflict. | ||
|
|
||
| ```sh | ||
| git add _slides/##-USERNAME.md | ||
| git commit | ||
| ``` | ||
|
|
||
| 1. Push the feature branch up to the remote, and see the resolution in the pull request. | ||
|
|
||
| ```sh | ||
| git push | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please indent each of the fenced code blocks an additional 3 spaces so they will be inline with the list items they correspond to?
Example
Before
-
When you see the merge conflict in the second pull request titled
USERNAME resolve conflict, work by yourself to resolve the merge conflict.- Working locally, switch to
mainbranch and pull updates from remote.
git switch main git pull
- Fetch the
USERNAME-modify-conflictbranch from remote and switch to the same branch locally.
git fetch git switch USER-modify-conflict
- Working locally, switch to
After
- When you see the merge conflict in the second pull request titled
USERNAME resolve conflict, work by yourself to resolve the merge conflict.-
Working locally, switch to
mainbranch and pull updates from remote.git switch main git pull
-
Fetch the
USERNAME-modify-conflictbranch from remote and switch to the same branch locally.git fetch git switch USER-modify-conflict
-
Reference: https://www.markdownguide.org/basic-syntax/#adding-elements-in-lists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the advice!
docs/01_getting_ready_for_class.md
Outdated
| code . | ||
| ``` | ||
|
|
||
| _**Note:** If you are working on a Mac, you will need to Install Shell Commands from the Atom menu, this happens as part of the installation process for Windows._ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s move this note up so it’s just below the atom . command.
| 1. `USERNAME resolve conflict` の Pull Request でマージコンフリクトが発生していることを確認し、マージコンフリクトを解消しましょう。 | ||
| 1. ローカル環境で、下記の操作を行い、 `main` ブランチの更新取込みを行います。 | ||
|
|
||
| ```sh | ||
| git switch main | ||
| git pull | ||
| ``` | ||
|
|
||
| 1. `git fetch` でリモート( GitHub 上)の情報を取込み、リモートで作成した `USERNAME-modify-conflict` ブランチをアップストリームに設定した上で、ローカルのブランチを切り替えます。 | ||
|
|
||
| ```sh | ||
| git fetch | ||
| git switch USER-modify-conflict | ||
| ``` | ||
|
|
||
| 1. `main` ブランチをフィーチャーブランチにマージします。 | ||
|
|
||
| ```sh | ||
| git merge main | ||
| ``` | ||
|
|
||
| 1. マージコンフリクトが発生しても大丈夫!コンフリクトがあるファイルは `Unmerged Paths` に表示されます。 `git status` を実行して、どのファイルにコンフリクトがあるかを確認します。 | ||
|
|
||
| ```sh | ||
| git status | ||
| ``` | ||
|
|
||
| 1. そのファイルをテキストエディタで開き、マージコンフリクトのマーカーを探します。 (`<<<<<<<`, `=======`, `>>>>>>>`) | ||
|
|
||
| ```sh | ||
| # Visual Studio Code で開く場合 | ||
| code _slides/##-USERNAME.md | ||
| ``` | ||
|
|
||
| 1. マーカーに囲まれた両ブランチのコードのうち、残したい方を残し、変更を保存します。 | ||
| 1. マージコンフリクトを解決するために、保存した変更をステージに追加しコミットします。 | ||
|
|
||
| ```sh | ||
| git add _slides/##-USERNAME.md | ||
| git commit | ||
| ``` | ||
|
|
||
| 1. そのフィーチャーブランチをリモートにプッシュします。 | ||
|
|
||
| ```sh | ||
| git push | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s fix the indentation of the fenced code blocks here too.
Co-authored-by: Parker Brown <[email protected]>
Co-authored-by: Parker Brown <[email protected]>
Co-authored-by: Parker Brown <[email protected]>
|
@parkerbxyz Thanks for your review! I applied your feedback. Please confirm it. 🙏 |
parkerbxyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look great. Thanks again, @dzeyelid! 💖
I updated Japanese docs along with current English docs.
Please review them.
I also some changes to English docs to improve them.