Skip to content

Instantly share code, notes, and snippets.

@michaelwclark
Created November 19, 2012 14:58
Show Gist options
  • Select an option

  • Save michaelwclark/4111107 to your computer and use it in GitHub Desktop.

Select an option

Save michaelwclark/4111107 to your computer and use it in GitHub Desktop.
Git Config. Includes colored logs, aliases, and MBC project specific info.
[user]
email = michaelwclark@gmail.com
name = Michael Clark
[credential]
helper = osxkeychain
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
rmb = !sh -c 'git branch -D $1 && git push origin :$1' -
cob = checkout -b
up = !git fetch origin && git rebase origin/master
ir = !git rebase -i origin/master
br = !git branch --list --color=auto -v
df = !git diff --color=auto $1
[gui]
recentrepo = /Users/mclark/Projects/mbc
[color]
diff = auto
status = auto
branch = auto
[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