dotfiles/gitconfig

48 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-09-15 17:15:20 +00:00
[core]
2016-04-21 18:49:05 +00:00
excludesfile = ~/.gitignore_global
2016-04-05 19:25:30 +00:00
[user]
email = tyrelsouza@gmail.com
name = Tyrel Souza
2016-04-21 18:49:05 +00:00
signingkey = 8A2DDEE2
2016-04-07 17:43:34 +00:00
[commit]
gpgsign = true
2016-04-07 18:04:31 +00:00
[color]
2016-04-21 18:49:05 +00:00
ui = auto # covers diff = true, status = auto, branch = auto
interactive = auto
2016-04-05 19:25:30 +00:00
[push]
2016-04-21 18:49:40 +00:00
default = simple
2016-04-07 17:32:17 +00:00
[format]
2016-04-07 17:43:34 +00:00
pretty = format:%C(auto)%h %C(green)%G? %C(red)%<(15,trunc)%aN %C(cyan)%<(15,trunc)%ar %C(white)%<(60,trunc)%s %C(auto)%d
2016-04-05 19:25:30 +00:00
[alias]
2016-04-07 17:43:34 +00:00
# show all these aliases
alias = "!git config -l | grep alias | cut -c 7-"
2016-04-07 18:04:31 +00:00
# Way more information on git log
ll = log --stat --abbrev-commit
2016-04-07 17:43:34 +00:00
# Show files modified per commit
2016-04-05 19:25:30 +00:00
files = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
2016-04-07 17:43:34 +00:00
# show a tree with branches merging
2016-04-05 19:25:30 +00:00
logtree= "log --graph --oneline --decorate --all"
2016-04-07 17:43:34 +00:00
# get the most 10 recent branches worked on
2016-07-14 19:19:30 +00:00
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 15"
2016-04-07 17:43:34 +00:00
# show tabs with ⌑ replacing tabs
tabs = "!git diff --color | sed 's/\t/⌑/g'"
# show the current version tag
2016-04-05 19:25:30 +00:00
v=describe --tags --match 'v*'
2016-04-07 17:43:34 +00:00
# alias like `hg st`, because I like st, shorter is nice!
2016-04-05 19:25:30 +00:00
st = status
2016-04-07 18:04:31 +00:00
# prettier diffs
d = diff --color-words
2016-04-21 18:49:05 +00:00
#push
p = push
2016-07-14 19:19:30 +00:00
# Diff so fancy!
dsf = "!f() { [ \"$GIT_PREFIX\" != \"\" ] && cd "$GIT_PREFIX"; git diff --color $@ | diff-so-fancy | less --tabs=4 -RFX; }; f"
2016-04-05 19:25:30 +00:00
[filter "lfs"]
2016-04-21 18:49:05 +00:00
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
2016-07-14 19:19:30 +00:00
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22