Created
July 3, 2012 16:03
-
-
Save mikeflynn/3040678 to your computer and use it in GitHub Desktop.
My work ~/.gitconfig file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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