LoginSignup
0
0

More than 1 year has passed since last update.

Gitをインストールするときに叩くコマンド(個人用)

Last updated at Posted at 2022-05-22

経緯

Gitをインストールする際、いつも「初期設定何するんだっけ?」となるので、コマンドを使い回せるようまとめる。(随時更新)

コマンド

# chocolateyがインストールされている場合
choco install git

# Git設定
git config --global user.name "ユーザー名"
git config --global user.email "メールアドレス"
git config --global  core.ignorecase false
git config --global init.defaultBranch main
git config --global core.autocrlf false

説明

git config --global user.name "ユーザー名" # 設定しないとpushできない
git config --global user.email "メールアドレス" # 設定しないとpushできない
git config --global core.ignorecase false # falseにするとファイル名の大文字小文字の変更を検知するようになる
git config --global init.defaultBranch main # 最初のブランチ名をmainにする
git config --global core.autocrlf false # 自動改行コード変換を無効にする
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0