DEV Community

amogh2019
amogh2019

Posted on

setting gitconfig

  • setting up my github username as name
git config --global user.name "nameorusername"
Enter fullscreen mode Exit fullscreen mode
  • setting up my private no reply email as my email
git config --global user.email "youremail/noreplygithubemail"
Enter fullscreen mode Exit fullscreen mode
  • telling git to use my gpg key, present on this computer and which is already added to my github account (check part 2 of this series) and always sign by default
git config --global user.signingkey {{keyidinlongformat}}
git config --global commit.gpgsign true
Enter fullscreen mode Exit fullscreen mode
  • do a commit // check git log // check the latest commit // name and email is what you want, right?
  • push on github // check commit is verified green

Top comments (0)