Command | Description |
---|---|
git config |
Get an overview of Git config commands |
git config --global user.name "user.name" |
Sets Git username |
git config --global user.email "user.email" |
Sets Git email address |
git config --global core.editor "editorname" |
Sets Git text editor |
git config --global init.defaultBranch main |
Sets default branch name to main |
git config --list |
Views set Git configurations |