Skip to content

Instantly share code, notes, and snippets.

@amitkeret
Last active December 16, 2015 05:59
Show Gist options
  • Save amitkeret/5388246 to your computer and use it in GitHub Desktop.
Save amitkeret/5388246 to your computer and use it in GitHub Desktop.
Master .gitconfig file
[user]
name = Name Here
email = email@here.com
[gitweb]
owner = Name Here
[core]
editor = nano
whitespace = cr-at-eol
eol = lf
autocrlf = input
safecrlf = true
[apply]
whitespace = nowarn
ignorewhitespace = change
[color]
ui = true
[color "diff"]
whitespace = normal red
[alias]
s = status
l = log --graph
lg = log --graph --all --oneline
lgg = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
d = diff
dw = diff -w
sh = show
a = add
ai = add -i
c = commit
cm = commit -m
b = branch -a
fm = !git fetch && git merge
fmm = !git fetch && git merge origin/master
po = push origin
pom = push origin master
co = checkout
coh = checkout HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment