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...") |
Inge Hoonte (talk | contribs) No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Seting up your profile == | == Seting up your profile == | ||
Open a terminal and type/paste the following: | |||
<source lang='bash'> | <source lang='bash'> | ||
Line 5: | Line 6: | ||
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 | ||
git config --list | git config --list | ||
cat . | cat .gitconfig | ||
</source> | </source> | ||
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. | 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. |
Latest revision as of 15:16, 22 March 2011
Seting up your profile
Open a terminal and type/paste the following:
# 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 .gitconfig
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.