-
Notifications
You must be signed in to change notification settings - Fork 860
InitialGitSetup
Jeff Squyres edited this page Apr 26, 2016
·
15 revisions
You can obtain source releases from http://git-scm.com/. Alternatively, most operating systems have a way to obtain a modern version of Git through the package management system (e.g, yum
, brew
, etc.).
Add the following to your ~/.gitconfig
file. Don't forget to change the user name/email!
# You need to have name and email values. If you don't,
# git will use your_local_username@your_local_hostname,
# which is almost certainly not what you want.
[user]
name = Joe Developer
email = [email protected]
######################################################
# The rest of these are optional, but helpful.
######################################################
[color]
diff = auto
status = auto
branch = auto
ui = auto
# Helps to distinguish between changed and untracked files
[color "status"]
added = green
changed = red
untracked = magenta
# Allows git to create 8-character abbreviated hashes and
# highlight extra whitespace.
[core]
whitespace = trailing-space,space-before-tab,indent-with-tab
abbrev = 8
# Allows better view of commits.
[alias]
graph = log --graph --decorate --abbrev-commit --pretty=oneline