Configuring Git

From XPUB & Lens-Based wiki
Revision as of 14:30, 21 March 2011 by Aymeric Mansoux (talk | contribs) (Created page with "== Seting up your profile == <source lang='bash'> # Set your name and email address git config --global user.name "Your Name" git config --global user.email "your@em.ail" # lis...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Seting up your profile

# Set your name and email address
git config --global user.name "Your Name"
git config --global user.email "your@em.ail"

# list your config
git config --list
cat .git/config

Every commits will be associated to this profile, to have a different profile for each git repos you can override these values in the .git folder inside the project repos.