From 2a4ab2dc85481fb6eeb7fa2d7ec44745273a7e01 Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sat, 14 Mar 2026 20:56:31 +0900 Subject: [PATCH 1/7] explain command prompt --- docs/3-web-servers/03-node-js/index.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/3-web-servers/03-node-js/index.mdx b/docs/3-web-servers/03-node-js/index.mdx index 69b2c7f0..ed9b8ed9 100644 --- a/docs/3-web-servers/03-node-js/index.mdx +++ b/docs/3-web-servers/03-node-js/index.mdx @@ -36,6 +36,12 @@ nvm -v 次のように表示されたら成功です。 +:::tip[コマンドプロンプト] + +コマンドプロンプトとは、ターミナルがコマンドの入力を受け付けている状態を示す記号で、一般的に`$`が使われます。この教材では、コマンドとその実行結果を区別するために入力するコマンドの行頭にこの`$`を付けて表記することがあります。`$`自体を入力する必要はありません。 + +::: + ```shell $ nvm -v 0.40.3 From 681df7fe02a70c4b675b390fb3dee60878d630ed Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sat, 21 Mar 2026 14:32:57 +0900 Subject: [PATCH 2/7] =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=83=97=E3=83=AD=E3=83=B3=E3=83=97=E3=83=88=E3=81=AE=E8=AA=AC?= =?UTF-8?q?=E6=98=8E=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3-web-servers/03-node-js/index.mdx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/3-web-servers/03-node-js/index.mdx b/docs/3-web-servers/03-node-js/index.mdx index ed9b8ed9..69b2c7f0 100644 --- a/docs/3-web-servers/03-node-js/index.mdx +++ b/docs/3-web-servers/03-node-js/index.mdx @@ -36,12 +36,6 @@ nvm -v 次のように表示されたら成功です。 -:::tip[コマンドプロンプト] - -コマンドプロンプトとは、ターミナルがコマンドの入力を受け付けている状態を示す記号で、一般的に`$`が使われます。この教材では、コマンドとその実行結果を区別するために入力するコマンドの行頭にこの`$`を付けて表記することがあります。`$`自体を入力する必要はありません。 - -::: - ```shell $ nvm -v 0.40.3 From b9ea9065101a08b7ba7362254848f94d3346ce6d Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sat, 21 Mar 2026 14:33:13 +0900 Subject: [PATCH 3/7] =?UTF-8?q?=E5=87=BA=E5=8A=9B=E3=82=92=E5=88=86?= =?UTF-8?q?=E9=9B=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3-web-servers/10-git-github-init/index.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/3-web-servers/10-git-github-init/index.mdx b/docs/3-web-servers/10-git-github-init/index.mdx index 0962c2a2..4e579128 100644 --- a/docs/3-web-servers/10-git-github-init/index.mdx +++ b/docs/3-web-servers/10-git-github-init/index.mdx @@ -110,12 +110,18 @@ GitHubに公開鍵を登録しましょう。 公開鍵と秘密鍵のペアを生成するには、`ssh-keygen`コマンドを使用します。次のコマンドを実行することで、`Ed25519`というアルゴリズムの実装を用いて鍵を生成できます。途中でターミナルの表示画面が止まりますが、`user@host:~$`が再度表示されるまでEnterキーで進みます。 ```shell -$ cd ~ -$ ssh-keygen -t ed25519 +cd ~ +ssh-keygen -t ed25519 ``` デフォルトでは公開鍵が`~/.ssh/id_ed25519.pub`、秘密鍵が`~/.ssh/id_ed25519`に格納されます。公開鍵のファイルを`cat`コマンドを用いて出力しましょう。 +```shell +cat ~/.ssh/id_ed25519.pub +``` + +次のように表示されたら成功です。 + ```shell $ cat ~/.ssh/id_ed25519.pub ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEqE0cyVkFSFD/BlAwvJ9QejXwgyFppn5JDQc8iGW/Gp [ユーザー名]@[コンピューター名] From ecfca5e4e6728ceff30e3fad91cea161bd14cba2 Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sun, 29 Mar 2026 17:19:19 +0900 Subject: [PATCH 4/7] =?UTF-8?q?.git=20=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=83=AA=E3=81=AEls=E3=81=AE=E5=87=BA=E5=8A=9B?= =?UTF-8?q?=E3=81=AE=E9=83=A8=E5=88=86=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3-web-servers/11-git/index.mdx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/3-web-servers/11-git/index.mdx b/docs/3-web-servers/11-git/index.mdx index 8c3a2170..7d584f45 100644 --- a/docs/3-web-servers/11-git/index.mdx +++ b/docs/3-web-servers/11-git/index.mdx @@ -73,16 +73,36 @@ git init :::tip[`.git`ディレクトリ] -Gitの管理下に置かれたディレクトリには`.git`という名前のディレクトリが生成されます。このディレクトリには過去のコミットの履歴など、Gitが内部的に使用するファイルが格納されます。誤ったディレクトリで`git init`コマンドを実行してしまった場合、このディレクトリを削除しましょう。なお、ピリオドから始まるディレクトリやファイルは`ls`コマンドに`-a`というオプションをつけないと表示できないので注意が必要です。また、VS Code上でも`.git`ディレクトリはデフォルトでは表示されません。 +Gitの管理下に置かれたディレクトリには`.git`という名前のディレクトリが生成されます。このディレクトリには過去のコミットの履歴など、Gitが内部的に使用するファイルが格納されます。誤ったディレクトリで`git init`コマンドを実行してしまった場合、このディレクトリを削除しましょう。 + +なお、ピリオドから始まるディレクトリやファイルは`ls`コマンドでは表示されません。 ```shell $ ls +``` + +`ls`コマンドに`-a`というオプションをつけないと表示できないので注意が必要です。 + +```shell +ls -a +``` + +```shell $ ls -a . .. .git +``` + +```bash +$ ls .git +``` + +```shell $ ls .git branches config description HEAD hooks info objects refs ``` +また、VS Code上でも`.git`ディレクトリはデフォルトでは表示されません。 + ::: ### 変更をステージする From 5bbbbdb39bd2d1c22326be221ba36bf6fde69084 Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sun, 29 Mar 2026 18:00:27 +0900 Subject: [PATCH 5/7] =?UTF-8?q?git=20brnch=E3=81=AEoutput=E3=82=92?= =?UTF-8?q?=E5=88=86=E9=9B=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3-web-servers/12-github/index.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/3-web-servers/12-github/index.mdx b/docs/3-web-servers/12-github/index.mdx index 09a5c80a..74b1832b 100644 --- a/docs/3-web-servers/12-github/index.mdx +++ b/docs/3-web-servers/12-github/index.mdx @@ -142,6 +142,10 @@ gitGraph まずは、現在いるブランチを確認してみましょう。ターミナルで`git branch`コマンドを実行してください。 +```shell +$ git branch +``` + ```shell $ git branch * main @@ -157,6 +161,11 @@ git switch -c 新しいブランチ名 現在いるブランチを確認すると、`*`が移動しているはずです。 +```shell +$ git branch +``` + + ```shell $ git branch * 新しいブランチ名 From 0698f4af276995c2c2f3df2451e5cb62e299fd59 Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sun, 29 Mar 2026 18:01:04 +0900 Subject: [PATCH 6/7] =?UTF-8?q?npm=20run=20build=E3=81=AEoutput=E3=82=92?= =?UTF-8?q?=E5=88=86=E9=9B=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/4-advanced/02-bundler/index.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/4-advanced/02-bundler/index.mdx b/docs/4-advanced/02-bundler/index.mdx index b4671804..46c2fcea 100644 --- a/docs/4-advanced/02-bundler/index.mdx +++ b/docs/4-advanced/02-bundler/index.mdx @@ -76,7 +76,10 @@ Viteの挙動を理解するため、Ctrl + C (Windows) / ```shell $ npm run build +``` +```shell +$ npm run build > vite@0.0.0 build > vite build From fba633273912123f6df3ce74edb089d104b367da Mon Sep 17 00:00:00 2001 From: Rei Tsukada Date: Sun, 29 Mar 2026 18:04:41 +0900 Subject: [PATCH 7/7] format --- docs/3-web-servers/12-github/index.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/3-web-servers/12-github/index.mdx b/docs/3-web-servers/12-github/index.mdx index 74b1832b..a7442a27 100644 --- a/docs/3-web-servers/12-github/index.mdx +++ b/docs/3-web-servers/12-github/index.mdx @@ -165,7 +165,6 @@ git switch -c 新しいブランチ名 $ git branch ``` - ```shell $ git branch * 新しいブランチ名