Open9
Git for Windowsのインストール
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
前提
- エディション:Windows 10 Home (64bit)
- バージョン:22H2
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
インストーラは以下サイトからダウンロード。
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
以下サイトを参考にインストール。細かい解説つき。
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
Git for Windows Version 2.41.0.3
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
以下、デフォルトから変更した設定項目。
- Select Components
- Choosing the default editor used by Git
- Adjusting the name of the initial branch in new repositories
- Configuring the line ending conversions
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
- Select Components
Windows Explorer integration
コンテキストメニューから起動することはなさそうなのでチェックを外す。
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
- Choosing the default editor used by Git
Use Visual Studio Code as Git's default editor
デフォルトエディタにVSCodeを設定。
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
- Adjusting the name of the initial branch in new repositories
Override the default branch name for new repositories
デフォルトのブランチ名はmainに設定。
![mochi](https://res.cloudinary.com/zenn/image/fetch/s--mPqWNIIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/c4568ac8fc.jpeg)
- Configuring the line ending conversions
Checkout as-is, commit as-is
改行コードは自動変換しない。