Configure your git environment

From ETSI Forge
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>