Skip to content

Instantly share code, notes, and snippets.

@KrofDrakula
Created October 3, 2012 09:55
Show Gist options
  • Save KrofDrakula/3826137 to your computer and use it in GitHub Desktop.
Save KrofDrakula/3826137 to your computer and use it in GitHub Desktop.
[color]
ui = 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]
st = status
ci = commit
br = branch
co = checkout
history = log --graph --pretty=format:'%C(yellow)%h%Creset %C(bold blue)%an%Creset %Cgreen(%cr)%Creset: %s'
update = !git stash && git fetch && git rebase && git stash pop
branch-name = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`
sshow = "!f() { git stash show `git rev-parse stash^{/$*}` -p; }; f"
sapply = "!f() { git stash apply `git rev-parse stash^{/$*}`; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment