Skip to content

Instantly share code, notes, and snippets.

@sagidayan
Last active November 25, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagidayan/fcadb11e1cf012128533 to your computer and use it in GitHub Desktop.
Save sagidayan/fcadb11e1cf012128533 to your computer and use it in GitHub Desktop.
git global config file (~/.gitconfig)
[user]
name = Sagi Dayan
email = sagidayan@gmail.com
[color]
# Use colors in Git commands that are capable of colored output when
# outputting to the terminal. (This is the default setting in Git ≥ 1.8.4.)
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[format]
pretty = "Commit: %C(yellow)%H%nAuthor: %C(green)%aN <%aE>%nDate: (%C(red)%ar%Creset) %ai%nSubject: %s%n%n%b"
[core]
editor = nano
[alias]
st = status -vs
lol = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
ada = add .
cm = commit -m
ck = checkout
[diff]
external = meld
changed = green
untracked = cyan
[format]
pretty = "Commit: %C(yellow)%H%nAuthor: %C(green)%aN <%aE>%nDate: (%C(red)%ar%Creset) %ai%nSubject: %s%n%n%b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment