Configuring Git: Difference between revisions
(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...") |
|||
Line 5: | Line 5: | ||
git config --global user.name "Your Name" | git config --global user.name "Your Name" | ||
git config --global user.email "your@em.ail" | git config --global user.email "your@em.ail" | ||
# Pwetty colows | |||
git config --global color.branch auto | |||
git config --global color.diff auto | |||
git config --global color.interactive auto | |||
git config --global color.status auto | |||
# list your config | # list your config |
Revision as of 14:26, 21 March 2011
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"
# Pwetty colows
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
# 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.