Create a file in your home directory here:
~/.gitconfig
(The dot makes it invisible of course)
In this file, you can configure lots of git stuff:
[user]
email = your-email@your-domain.com
name = John Doe
[diff]
rename = copy
email = your-email@your-domain.com
name = John Doe
[diff]
rename = copy
# Always enable color, in all commands
[color]
ui = true
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
And if you want some handy aliases for typing less when using git, try these:
[alias]
ba = branch -a
st = status
ca = commit -a -v
ci = commit -v
pl = pull –rebase
pu = push
cmp = gc –aggressive
ba = branch -a
st = status
ca = commit -a -v
ci = commit -v
pl = pull –rebase
pu = push
cmp = gc –aggressive