Skip to content

Instantly share code, notes, and snippets.

@mbreit
Created February 12, 2011 13:48
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 mbreit/823777 to your computer and use it in GitHub Desktop.
Save mbreit/823777 to your computer and use it in GitHub Desktop.
Git config
[user]
email = test@example.com
name = Max Mustermann
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
[alias]
st = status -s -b
s = status -s -b
co = checkout
cob = checkout -b
cot = checkout -t
c = commit
cl = clone
ci = commit
ff = merge --ff-only
nff = merge --no-ff
tm = branch -a --no-merged
signoff = commit -s --amend
p = push origin HEAD
po = push origin
pom = push origin master
l = log --graph --pretty=format:'%C(yellow)%h%Cred%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative --date-order
la = log --graph --all --pretty=format:'%C(yellow)%h%Cred%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative --date-order
ll = log --graph --decorate --stat --date-order
lla = log --graph --decorate --stat --all --date-order
lm = log --graph --pretty=format:'%C(yellow)%h%Cred%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative --date-order ^HEAD
llm = log --graph --decorate --stat --date-order ^HEAD
d = diff
ds = diff --staged
ignore = update-index --assume-unchanged
unignore = update-index --assume-changed
lost = !"git fsck --lost-found | awk '/dangling commit/ {print $3}' | git show --format='SHA1: %C(yellow)%h%Creset %f' --stdin | awk '/SHA1/ {sub(\"SHA1: \", \"\"); print}'"
[url "https://github.com/"]
insteadOf = gh:
[diff]
tool = vimdiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment