Every Git user will have probably been asked to set up their Git at the first time: 1 2 git config --global user.name "Ramsay Leung"git config --global user.email ramsayleung@gmail.com The above command will simply add the user.name and user.email value into your ~/.gitconfig file 1 2 3 4 5 6 7 8 > cat ~/.gitconfig [user]name= Ramsay Leung email= ramsayleung@gmail.com [core]quotepath=false[init]defaultBranch= master You could also specify --local argument to writes the config values to .git/c...