本記事の環境
OS:Windows 11 Home (64 bit)
CPU:AMD Ryzen 5 3500U Radeon Vega Mobile Gfx 2.10 GHz
RAM:20 GB
参考書籍
git for windowsの導入
git for windowsをダウンロード
公式サイトからインストーラーをダウンロードする
git for windowsのインストール
Information
GPLライセンスの同意設定
Nextボタンを押下
Select Destination Location
インストールフォルダの指定
Nextボタンを押下
Select Components
インストール項目の指定
Nextボタンを押下
Select Start Menu Folder
スタートメニューに表示する名前の指定
Choosing the default editor used by Git
Gitで使用するエディタの指定
エディタを選択してNextボタンを押下
デフォルトで選択できるエディタ
- Vim
- Notepad++
- Visual Studio Code
- Visual Studio Code Insiders
- Sublime Text
- Atom
- VSCodium
- Notepad
- Wordpad
Adjusting the name of the initial branch in new repositories
新規リポジトリ作成時の初期ブランチ名を指定
Nextボタンを押下
Adjusting your PATH enviroment
環境変数 PAPTH への追加パターンを選択
Nextボタンを押下
Choosing the SSH executable
SSHに利用するライブラリを選択
Nextボタンを押下
Choosing HTTPS transport backend
HTTPS通信に利用するライブラリを選択
Nextボタンを押下
Configuring the line endin converstions
改行コードの自動変換方法を指定
Nextボタンを押下
Configuring the terminal emulator to use with Git Bash
Git Bash で利用するターミナルエミュレータを選択
Nextボタンを押下
Choose the default behavior of git pull
git pullコマンドの動作を選択
Nextボタンを押下
Choose a credential helper
認証情報ヘルパーを選択
Nextボタンを押下
Configuring extra option
追加オプションを設定
Nextボタンを押下
Configuring expermental option
開発版機能を設定
Installボタンを押下
Completing the Git Setup Wizard
インストール完了
Finishボタンを押下
初期設定
ユーザー名を設定
git config --global user.name "ユーザー名"
メールアドレスを設定
git config --global user.email メールアドレス