Git for Windows インストール
Git for Windowsインストーラーのダウンロード
![](https://imok.jp/wp-content/uploads/2022/03/git001-800x450.jpg)
Git for Windows公式サイト「https://gitforwindows.org/index.html」を開き、マウスカーソルを「Download」をクリックし、ダウンロードを開始します。
Git for Windowsのインストール
ダウンロードしたファイルを起動し、インストールを開始します。
![](https://imok.jp/wp-content/uploads/2022/03/git002.png)
「Next」をクリックします。GNUライセンスへの同意した事になります。
![](https://imok.jp/wp-content/uploads/2022/03/git003.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git004.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git005.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git007.png)
今回は、事前にインストールしている「Visual Studio Code」を選択し、「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git008.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git009.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git010.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git011.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git012.png)
デフォルトでは「Checkout Windows-style, commit Unix-style line endings」ですが、意図せぬトラブルの元になりえるとの見解があるため「Checkout as-is, commit as-is」を選択して「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git102.png)
「Use Windows’ default console windows」を選択し、「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git014.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git015.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git016.png)
「Next」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git017.png)
「Install」をクリックします。
![](https://imok.jp/wp-content/uploads/2022/03/git018.png)
![](https://imok.jp/wp-content/uploads/2022/03/git019.png)
「Finish」をクリックします。デフォルトでは「View Release Note」がチェックされているのでブラウザが起動しRelease Notesが表示されます。
Gitの初期設定
Git Bashを使用して初期設定を行ないます。
Gitにユーザー名とメールアドレスを設定することで、コミットしたときに誰が行なったコミットかを記録することができます。
$ git config --global user.name "ユーザー名"
$ git config --global user.email "メールアドレス"
![](https://imok.jp/wp-content/uploads/2022/03/git203-800x418.png)
コメント