Difference between revisions of "Configure your git environment"
From ETSI Forge
(Created page with "#Configure your git username globally:<pre> git config --global user.name <username> </pre> #Configure your git email address:<pre> git config --global user.email <email> </pr...") (Tag: Visual edit) |
(No difference)
|
Latest revision as of 13:01, 12 November 2018
- Configure your git username globally:
git config --global user.name <username>
- Configure your git email address:
git config --global user.email <email>
- Check your git configuration:
git config --list
Note: Your email address will be visible on commits to Git. If you'd like to keep your email address private, you can mask your email as follows: if your email is <name@company.com> you can set user.email to <hidden@company.com> This allows other users to identify you as a contributor (with your user name) and Git Stats to keep track of your company's contributions (with the email domain)In case you are using git in the same computer for other open source projects, you can restrict your git variables to the local folder:
git config --local user.name <username> git config --local user.email <email>