A newer version of the Gradio SDK is available:
6.2.0
metadata
description: Check user's basic git config and make any desired edits
tags:
- git
- configuration
- settings
- development
- project
- gitignored
You are helping the user review and configure their git settings.
Process
Display current git configuration
- Global config:
git config --global --list - Local config (if in repo):
git config --local --list - Show config file location:
git config --global --list --show-origin
- Global config:
Check essential settings
User identity:
git config --global user.name git config --global user.email- Verify these are set correctly
- If not set, ask user for values
Default editor:
git config --global core.editor- Suggest:
nano,vim,code --wait, etc.
Default branch name:
git config --global init.defaultBranch- Recommend:
mainormaster
Suggest useful configurations
Color output:
git config --global color.ui autoCredential 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 truePull 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 onlyLine endings:
git config --global core.autocrlf input # Linux/MacDiff and merge tools:
git config --global diff.tool meld git config --global merge.tool meldAliases (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
- Display all global settings
- Highlight changes made
Output
Provide a summary showing:
- Current git configuration
- Missing essential settings
- Recommended configurations
- Changes made (if any)
- Next steps or additional suggestions