@@ -22,7 +22,7 @@ Git では、**リポジトリ**と呼ばれる単位でソースコードを管
2222
2323まずは Git で管理するためのディレクトリを作成し、VS Code で開きます。左側のアクティビティバーの ` Source Control ` パネル内の ` Initialize Repository ` ボタンを押してください。これで、カレントディレクトリを Git の管理下に置く (カレントディレクトリを Git リポジトリにする) ことができます。
2424
25- <video src = { gitInitVideo } controls autoPlay muted loop />
25+ <video src = { gitInitVideo } controls muted />
2626
2727:::info[ ` git init ` コマンド]
2828
@@ -32,7 +32,7 @@ Git の操作は、コマンドからも行うことが出来ます。カレン
3232git init
3333```
3434
35- <video src = { gitInitWithCliVideo } controls autoPlay muted loop />
35+ <video src = { gitInitWithCliVideo } controls muted />
3636
3737:::
3838
@@ -58,7 +58,7 @@ branches config description HEAD hooks info objects refs
5858
5959コミットを作成する前に、変更を** ステージ** する必要があります。ステージとはコミットの直前の状態で、Git に対して該当ファイルをコミットする意思があることを伝えるためのものです。` Source Control ` パネル内の変更したファイルの横の ` + ` ボタンを押します。ファイルが ` Changes ` から ` Staged Changes ` に移ったら成功です。
6060
61- <video src = { stageChangesVideo } loop muted autoPlay controls />
61+ <video src = { stageChangesVideo } muted controls />
6262
6363:::info[ ` git status ` コマンド]
6464
@@ -85,13 +85,13 @@ $ git add -A # リポジトリ内部のすべてのファイルをステージ
8585
8686` git add ` コマンドを使う前後で ` git status ` コマンドの結果が変化していることを確認しましょう。
8787
88- <video src = { stageChangesWithCliVideo } loop muted autoPlay controls />
88+ <video src = { stageChangesWithCliVideo } muted controls />
8989
9090:::
9191
9292ステージされた変更からコミットを作成するには、** コミットメッセージ** を入力して ` Commit ` ボタンを押します。コミットメッセージには、そのコミットで行われた変更を説明する簡潔なメッセージを入力してください。(日本語も使うことが出来ます。)
9393
94- <video src = { commitChangesVideo } muted autoPlay loop controls />
94+ <video src = { commitChangesVideo } muted controls />
9595
9696変更がコミットとして記録されました。
9797
@@ -103,7 +103,7 @@ $ git add -A # リポジトリ内部のすべてのファイルをステージ
103103git commit -m " コミットメッセージ"
104104```
105105
106- <video src = { commitChangesWithCliVideo } muted autoPlay loop controls />
106+ <video src = { commitChangesWithCliVideo } muted controls />
107107
108108:::
109109
@@ -119,17 +119,17 @@ git commit -m "コミットメッセージ"
119119
120120先ほど作成したファイルを変更し、ステージした後、もう一度コミットを作ってみましょう。
121121
122- <video src = { secondCommitVideo } muted autoPlay loop controls />
122+ <video src = { secondCommitVideo } muted controls />
123123
124124これにより、2 つ目のコミットが作成されました。コミットの履歴を確認するために、先ほどインストールした ` Git Graph ` 拡張機能を起動してみましょう。<kbd >command</kbd > + <kbd >shift</kbd > + <kbd >P</kbd > (macOS) / <kbd >Ctrl</kbd > + <kbd >Shift</kbd > + <kbd >P</kbd > (Windows) キーを押してコマンドパレットを開き、` Git Graph: View Git Graph (git log) ` を選択します。
125125
126- <video src = { showGitHistoryVideo } muted autoPlay loop controls />
126+ <video src = { showGitHistoryVideo } muted controls />
127127
128128:::info[ ` git log ` コマンド]
129129
130130コマンドを用いて変更を表示するには、` git log ` コマンドを使用します。
131131
132- <video src = { showGitHistoryWithCliVideo } muted autoPlay loop controls />
132+ <video src = { showGitHistoryWithCliVideo } muted controls />
133133
134134:::
135135
@@ -139,7 +139,7 @@ git commit -m "コミットメッセージ"
139139
140140下の動画の最後で実行されている ` git diff @ @~ ` は、最新のコミットとそのひとつ前のコミットを比較するためのコマンドです。` @ ` が最新のコミットを、` ~ ` が「そのひとつ前」を表します。
141141
142- <video src = { showGitDiffWithCliVideo } muted autoPlay loop controls />
142+ <video src = { showGitDiffWithCliVideo } muted controls />
143143
144144:::
145145
163163
164164追加が完了したら、` origin ` として登録したリモートリポジトリにコミットを送信します。この操作を** プッシュ** と呼びます。プッシュをするには、` Publish Branch ` を押します。
165165
166- <video src = { pushChangesVideo } muted autoPlay loop controls />
166+ <video src = { pushChangesVideo } muted controls />
167167
168168:::info
169169
0 commit comments