Open1

gitのあれこれ

schnellschnell

初期設定

ユーザ情報の設定

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