# git push

リポジトリの繋ぎ込みができたので、作業branchを切っていくつかcommitを積みpushしましょう。

`feature/c-text-page`にて作業します。`c.txt`を作成して以下の文章を追加しましょう。

```bash
git switch -c feature/c-text-page
```

`c.txt`を作成し、以下を記述します。

<pre data-title="c.txt◎"><code><strong>I`m tarou.
</strong></code></pre>

`git add`、`git commit`します。

commit messageは以下とします。

```
c.txtを作成し、自己紹介文を追加
```

再度、`c.txt`に以下を追記します。

<pre data-title="c.txt◎"><code>I`m tarou.
<strong>I come from China.
</strong></code></pre>

`git add`、`git commit`します。

commit messageは以下とします。

```
c.txtに出身を追加
```

では、リモートリポジトリにpushしましょう。

```bash
git push origin feature/c-text-page
```

GitHubのリポジトリのページを更新すると、branchesが2に増えており、こちらをクリックすると`feature/c-text-page`が追加されていることがわかります。

<figure><img src="https://1869761657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcUBbYqol4PMzZJggiMqV%2Fuploads%2Fobnvl0YiLc6pDfonjW29%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-11-28%2012.13.20.png?alt=media&#x26;token=c4b891d4-6663-4829-bde2-467578496c7f" alt=""><figcaption></figcaption></figure>

`feature/c-text-page`をクリックすると、その時点でのソースコードを確認することができ、commitsをクリックすると、先ほど詰んだcommitを確認することができます。

<figure><img src="https://1869761657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcUBbYqol4PMzZJggiMqV%2Fuploads%2FlilKTfJPB2sQWGGPsytf%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-11-28%2012.16.56.png?alt=media&#x26;token=b2f75186-5baa-4fbd-a7b3-fd5ed0a7611d" alt=""><figcaption></figcaption></figure>
