Configure your git environment

From ETSI Forge
Revision as of 14:01, 12 November 2018 by Carignani (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. Configure your git username globally:
     git config --global user.name <username> 
  2. Configure your git email address:
     git config --global user.email <email> 
  3. 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>