Skip to content

Instantly share code, notes, and snippets.

@juandebravo
Created July 13, 2012 08:14
Show Gist options
  • Save juandebravo/3103566 to your computer and use it in GitHub Desktop.
Save juandebravo/3103566 to your computer and use it in GitHub Desktop.
gitconfig_example
[user]
name = <username>
email = <email>
[alias]
lg= log --graph --abbrev-commit --date=relative --all
co = checkout
br = branch
ci = commit
st = status
unstage = reset HEAD --
last = log -1 HEAD
[color]
ui=true
[core]
autocrlf = input
excludesfile = ~/.gitignore
[format]
pretty = %Cred%h%Creset -%C(yellow)%d%Creset %s - %Cblue%an%Creset %Cgreen(%cr)%Creset
[browser "gitscm"]
cmd = /bin/sh -c 'open http://git-scm.com/docs/$(basename $1 .html)' --
[help]
browser = gitscm
format = html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment