環境
Windows11/Git for Windows v2.55.0(2)
Git for Windows インストール
-
公式サイトからダウンロードしインストール
-
Setup Wizardにて以下へ変更、確認。その他はデフォルト
-
Choosing the default editor used by Git画面
VS Codeを使っているので
Use Visual Studio Code as Git's default editorへ変更 -
Adjusting the name of the initial branch in new repositories画面
入力欄に mainと入力されていることを確認
-
Configuring the line ending conversions画面
エディタで改行コードを管理したいので、
Checkout as-is, commit as-isへ変更
-
-
インストールが完了しているか確認
git --version
Gitの初期設定
#ユーザー名
git config --global user.name "MyName"
#メールアドレス
git config --global user.email "UserName@Domain"
#設定が正しくできたか確認
git config --list