Skip to content

Instantly share code, notes, and snippets.

@apiri
Last active June 5, 2018 14:25
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 apiri/77b6e0825698db6f5cb5a789c27891c9 to your computer and use it in GitHub Desktop.
Save apiri/77b6e0825698db6f5cb5a789c27891c9 to your computer and use it in GitHub Desktop.
[core]
excludesfile = /Users/apiri/.gitignore_global
attributesfile = /Users/apiri/.gitattributes
[diff "zip"]
textconv = unzip -p
binary = true
[diff "gz"]
textconv = gzcat
binary = true
[diff "bz2"]
textconv = bzcat
binary = true
[diff "xz"]
textconv = xzcat
binary = true
[diff "tar"]
textconv = tar -O -xf
binary = true
[diff "tar-bz2"]
textconv = tar -O -xjf
binary = true
[diff "tar-gz"]
textconv = tar -O -xzf
binary = true
[diff "tar-xz"]
textconv = tar -O -xJf
binary = true
[diff "odf"]
textconv = odt2txt
[diff "pdf"]
textconv = pdfinfo
[diff "bin"]
textconv = hexdump -v -C
[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
[merge]
ff = only
[pull]
ff = only
[push]
default = simple
[user]
email = aldrinpiri@gmail.com
name = Aldrin Piri
signingkey = aldrin@apache.org
[pager]
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX
[alias]
fulllog = "log --decorate --color --stat --show-signature"
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment