Skip to content

Conversation

@dzeyelid
Copy link
Contributor

I updated Japanese docs along with current English docs.
Please review them.

I also some changes to English docs to improve them.

@dzeyelid dzeyelid requested a review from a team as a code owner March 18, 2022 13:07
@ppremk
Copy link
Contributor

ppremk commented Mar 21, 2022

@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. 🙇🏽

@junkofujiwara
Copy link

verified the translation.

@ppremk
Copy link
Contributor

ppremk commented Mar 21, 2022

Translation verified by @junkofujiwara. Good to merge when all test have passed.

@dzeyelid
Copy link
Contributor Author

@junkofujiwara Thank you for verifying!
@ppremk I fixed all linter errors, including some that I did not change but were shown as errors by the linter. Please confirm it 🙏

Copy link
Contributor

@parkerbxyz parkerbxyz left a 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. 😊

Comment on lines 32 to 78
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
```

Copy link
Contributor

@parkerbxyz parkerbxyz Mar 21, 2022

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

  1. When you see the merge conflict in the second pull request titled USERNAME resolve conflict, work by yourself to resolve the merge conflict.

    1. Working locally, switch to main branch and pull updates from remote.
    git switch main
    git pull
    1. Fetch the USERNAME-modify-conflict branch from remote and switch to the same branch locally.
    git fetch
    git switch USER-modify-conflict

After

  1. When you see the merge conflict in the second pull request titled USERNAME resolve conflict, work by yourself to resolve the merge conflict.
    1. Working locally, switch to main branch and pull updates from remote.

      git switch main
      git pull
    2. Fetch the USERNAME-modify-conflict branch 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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the advice!

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._
Copy link
Contributor

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.

Comment on lines 31 to 78
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
```

Copy link
Contributor

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.

@dzeyelid
Copy link
Contributor Author

@parkerbxyz Thanks for your review! I applied your feedback. Please confirm it. 🙏

Copy link
Contributor

@parkerbxyz parkerbxyz left a 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! 💖

@parkerbxyz parkerbxyz merged commit 8ac62b5 into githubtraining:main Mar 24, 2022
@ppremk ppremk deleted the update-materials branch March 24, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants