Skip to content

Instantly share code, notes, and snippets.

@gabssnake
Last active August 29, 2015 13:57
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 gabssnake/9368853 to your computer and use it in GitHub Desktop.
Save gabssnake/9368853 to your computer and use it in GitHub Desktop.
git config file
[core]
excludesfile = ~/.gitignore_global
editor = subl
[color]
ui = auto
diff = auto
status = auto
branch = auto
interactive = auto
grep = always
[credential]
helper = osxkeychain
[push]
default = current
[branch]
autosetuprebase = always
[alias]
s = status -sb
lol = log --graph --decorate --oneline --all
lola = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
log1 = log --graph --pretty=format:'%h -%d %s (%cr) <%an>'
log2 = log --graph --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
log3 = log --graph --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
unstage = reset HEAD --
aa = add -A :/
[apply]
whitespace = nowarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment