How to Set user name and email globally in git

Git needs to know your username and email address to properly credit your commits. Setting this setting will also let GitHub link the commits you make to your GitHub account. Only commits made after you change this setting will use the new info, old commits will preserve the info they were committed with.

The 'email' setting does not have to be a valid email address, it only need match the 'user@server' naming scheme.
  • git config --global user.name "amal"
  • git config --global user.email "amal@gmail.com"
NOTE:-  For more GIT Configuration files info http://www.geekgumbo.com/2010/04/19/git-config-files/

Comments

Popular posts from this blog

How to SSH to remote server without entering password each time.

How to redirect a URL in NGINX

Ruby on Rails Installation on Windows 7