DELAPARRA
Index
Color
NL
Category: Git commands

git config

Explained by Updated

What is git config?

git config: Set user-level or repo-level configuration options. git config sets Git options, either for one repository or for your user account with --global. The first settings anyone needs are their name and email: git config --global user.name "Anna de Vries". Other useful settings include your default editor, the default branch name for new repositories, and pull.rebase to decide whether git pull merges or rebases. Aliases can shorten commands you use often, such as git config --global alias.st status.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about git config

What should you keep in mind with git config?

Repository settings live in .git/config and are not shared with your team. Shared conventions belong in files that are committed, such as .gitattributes for line endings and .editorconfig for editors. Use a work email in work repositories; many platforms link commits to accounts by email address.

At a glance

CategoryGit commands
Explained by
Updated

More Git commands terms

All terms starting with G

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.