Skip to content

Instantly share code, notes, and snippets.

@JerryFleming
Created May 14, 2014 13:16
Show Gist options
  • Save JerryFleming/34f5dbd7cd657e25c20b to your computer and use it in GitHub Desktop.
Save JerryFleming/34f5dbd7cd657e25c20b to your computer and use it in GitHub Desktop.
[alias]
b = branch
cat = -p cat-file -p
ci = commit -a
co = checkout
d = diff -C -w
ls = ls-files --exclude-from=.git/info/exclude -v -d -o -m -s -u
lsd = ls-files -d
l = log --stat --graph '--format=%Cblue%h%Creset<%Cblue%an%Creset> %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -15
ll = log --graph '--format=%Cblue%h%Creset<%Cblue%an%Creset> %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration
lg= log --graph '--format=%h<%an> %ar %d %s' --all
lo = ls-files --exclude-standard -o -i
gt = !gitk --left-right HEAD...MERGE_HEAD
rl = reflog show --date=relative
ru = remote update
s = status -s -b
st = status
root = !cd $(git rev-parse --show-cdup)
undo = reset --hard
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
whatpath = !echo $PATH
[color]
diff = auto
branch = auto
grep = auto
interactive = auto
status = auto
ui = auto
[core]
autocrlf = false
bare = false
edito = vim
eol = lf
filemode = true
logallrefupdates = true
pager = less -RFX -x5
repositoryformatversion = 0
safecrlf = warn
quotepath = false
excludesfile = /Users/jerry/.gitignore_global
[diff]
tool = vimdiff
mnemonicprefix = true
[difftool]
prompt = false
[merge]
tool = vimdiff
[mergetool]
prompt = false
[receive]
denyCurrentBranch = warn
[user]
email = [email protected]
name = Jerry Fleming
signingkey = 1EC7BD48
[instaweb]
browser = chromium
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[push]
default = matching
[pack]
packSizeLimit = 1M
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[gc]
auto = 0
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment