Permalink
Browse files

add git config

  • Loading branch information...
1 parent 20c0442 commit 658c747801a87bd8c6b3686ed74d0fbc68d6926e Scott Raymond committed Feb 21, 2012
Showing with 71 additions and 0 deletions.
  1. +71 −0 gitconfig
View
@@ -0,0 +1,71 @@
+[user]
+ name = Scott Raymond
+ email = scottr@fb.com
+[github]
+ user = sco
+ #token = SECRET
+[color]
+ status = auto
+ diff = auto
+ branch = auto
+ interactive = auto
+[color "branch"]
+ current = yellow reverse
+ local = yellow
+ remote = green
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+[color "status"]
+ added = yellow
+ changed = green
+ untracked = cyan
+[alias]
+ br = branch
+ df = diff
+ lg = log -p
+ st = status
+ ci = commit
+ co = checkout
+ staged = diff --cached
+ unstaged = diff
+ both = diff HEAD
+ logline = log --pretty=oneline
+ amend = commit --amend
+ plre = pull --rebase
+ unstage = reset HEAD
+ today = log --since='1 Day Ago'
+ recent = log --stat --since='3 Hours Ago' --graph --pretty=oneline --abbrev-commit --date=relative
+ me = log --author='Matthew Hutchinson'
+ # automatically commit change and pre-configure the rebase prompt to fold it into the last commit
+ fix = "!f() { git commit -a -m \"fixup! $(git log -1 --pretty=format:%s)\" && git rebase -i --autosquash HEAD~4; }; f"
+[format]
+ # git log uses --pretty format by default, so this changes the default
+ # e.g. 4436819 [23 hours ago] (Gabe Berke-Williams) One line prompt
+ pretty = %C(yellow)%h%Creset %Cgreen[%cr]%Creset (%an) %s
+[merge]
+ tool = opendiff
+[merge "pofile"]
+ name = Gettext merge driver
+ driver = git merge-po %O %A %B
+#[sendemail]
+# smtpserver = smtp.example.com
+# aliasesfile = /Users/matt/.gitaliases
+# aliasfiletype = mailrc
+[core]
+# legacyheaders = false
+# excludesfile = /Users/matt/.gitignore
+ editor = vim
+[repack]
+ usedeltabaseoffset = true
+[apply]
+ whitespace = nowarn
+[push]
+ # push current branch even if you've never pushed it before
+ default = current
+#[heroku]
+# account = personal
+[mergetool]
+ keepBackup = false

0 comments on commit 658c747

Please sign in to comment.