Check user's basic git config and make any desired edits
Reviews and configures Git settings including user identity, editor, branch defaults, and useful aliases.
/plugin marketplace add danielrosehill/git-github-plugin/plugin install git-github@danielrosehillsetup/You are helping the user review and configure their git settings.
Display current git configuration
git config --global --listgit config --local --listgit config --global --list --show-originCheck essential settings
User identity:
git config --global user.name
git config --global user.email
Default editor:
git config --global core.editor
nano, vim, code --wait, etc.Default branch name:
git config --global init.defaultBranch
main or masterSuggest useful configurations
Color output:
git config --global color.ui auto
Credential helper:
git config --global credential.helper store
# or for cache: git config --global credential.helper 'cache --timeout=3600'
Push behavior:
git config --global push.default simple
git config --global push.autoSetupRemote true
Pull behavior:
git config --global pull.rebase false # merge (default)
# or: git config --global pull.rebase true # rebase
# or: git config --global pull.ff only # fast-forward only
Line endings:
git config --global core.autocrlf input # Linux/Mac
Diff and merge tools:
git config --global diff.tool meld
git config --global merge.tool meld
Aliases (optional but useful) Ask if user wants common aliases:
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
GPG signing (optional)
git config --global commit.gpgsign true
git config --global user.signingkey <GPG-KEY-ID>
Show updated configuration
Provide a summary showing: