Config.Tips

Git Config

The .gitconfig file is a user-specific global configuration for Git. It is located in the user's home directory and contains settings such as the user's name, email, and preferred diff tool.

~/.gitconfig
[user]
  name = Your Name
  email = your.email@example.com
[init]
  defaultBranch = main
[alias]
  st = status
  ci = commit
  br = branch
  co = checkout

Tips