--global 옵션을 사용하여 설정을 전역적으로 적용할 수 있습니다.
git config --global user.name "User name"
git config --global user.email "User.email@example.com"
--global 옵션을 생략하면 해당 레포지토리에서만 적용됩니다. 이렇게 특정 저장소에만 설정하면 --global로 설정된 값에 비해 우선적으로 적용됩니다. 따라서 각 repo에서 다른 이름과 이메일을 사용하고 싶을 때 적용하면 됩니다.
git config user.name "User name"
git config user.email "User.email@example.com"
git config user.name
git config user.email
Git 설정 파일은 $home 디렉토리에 .gitconfig 라는 이름으로 저장됩니다.
Mac : /Users/<사용자 이름>/.gitconfig
Window : C:\Users\<사용자 이름>\.gitconfig
Linux : /Users/<사용자 이름>/.gitconfig