Your git configuration file is usually kept in your $HOME directory.
For example, on a MacOSX/Linux machine this is stored in ~/.gitconfig
1link$git config --global user.name "[name]"
2link$git config --global user.email "[email address]"
1link$git config --global color.ui auto
1link$git config --global core.editor "vim"
1link$git config --list --show-origin
2link$# Query specific setting
3link$git config user.name
1link$git config --global init.defaultBranch main
Home Backstory Why Git? Setting Up GitHub GitHub CLI Your GitHub Profile GitHub Pages Creating A New Repo Cloning A Repository Your First Commit Ignoring Files In Git Stashing Your Changes Branching With Git Merging Git Branches Rebasing Vs Merging Git Workflows Fork And Pull Flow Your First Pull Request Automated Security Alerts Seeing The Differences Removing/Deleting Files Reverting Your Commits Configuring your Git Commit Templates Creating Shortcuts Dotfile Management Sponsoring Open Source Handy Commands Thank You