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.
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"
Comments
Post a Comment