miscellaneous_tips:20_software_development:git_notes:git_configuration

'git' Configuration


Before git is used for the first time on a machine, some global configuration settings for the git user should be made:

git config --global user.name  "Martin Burnicki"
git config --global user.email "martin.burnicki@burnicki.net"


If a different email address is preferred for commits in a specific project, the local configuration can be modfied to override the global default setting, e.g. by running a command like this inside the project directory:

git config --local user.email "martin.burnicki@meinberg.de"

Alternatively, environment variables can be used to specify the author and committer name and email address.


Also disable prompting when the diff/merge tool is called.

git config --global merge.tool meld
git config --global diff.tool meld
git config --global --add difftool.prompt false

Martin Burnicki martin.burnicki@burnicki.net, last updated 2021-07-29

  • miscellaneous_tips/20_software_development/git_notes/git_configuration.txt
  • Zuletzt geändert: 2021-07-29 17:59
  • von martin