Configuring Git: Difference between revisions
Inge Hoonte (talk | contribs) No edit summary |
|||
Line 15: | Line 15: | ||
# 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.