Skip to content

Instantly share code, notes, and snippets.

@mikeflynn
Created July 3, 2012 16:03
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 mikeflynn/3040678 to your computer and use it in GitHub Desktop.
Save mikeflynn/3040678 to your computer and use it in GitHub Desktop.
My work ~/.gitconfig file
[color]
branch = auto
diff = auto
status = 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
[user]
name = Mike Flynn
email = mike.flynn@answers.com
[push]
default = matching
[alias]
hash = "rev-parse HEAD"
pull = "!sh -c 'git pull --rebase'"
deploy = "!sh -c 'cd $(git rev-parse --show-toplevel); echo \"# $(basename "$PWD") (BRANCH: $(br=`git symbolic-ref HEAD`; echo ${br#refs/heads/}))\ncd '$(pwd)' \ngitswitch '$(git rev-parse HEAD)';\"' | pbcopy; echo Deploy instructions copied."
co = !sh -c 'git fetch && git checkout $0'
refresh = "!sh -c 'git-refresh'"
opush = "!sh -c 'git-opush'"
make = !sh -c 'git checkout master && git pull --rebase && git checkout -b $0'
lg = log --decorate
blog = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
[difftool]
prompt = false
[diff]
tool = =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment