Open1
gitのあれこれ
初期設定
ユーザ情報の設定
git config --global user.name "github account"
git config --global user.email "username@example.com"
または
.gitconfig
に以下を追記
[user]
name = "github account"
email = "username@example.com"
デフォルトブランチをmainに変更
git config --global user.defaultBranch main
または
.gitconfig
に以下を追記
[user]
defaultBranch = main