dotfiles/gitconfig

41 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-09-15 17:15:20 +00:00
[core]
2016-04-05 19:25:30 +00:00
excludesfile = ~/.gitignore_global
[user]
email = tyrelsouza@gmail.com
name = Tyrel Souza
signingkey = 8A2DDEE2
2016-04-07 17:43:34 +00:00
[commit]
gpgsign = true
2016-04-07 18:04:31 +00:00
[color]
ui = auto # covers diff = true, status = auto, branch = auto
interactive = auto
2016-04-05 19:25:30 +00:00
[push]
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-04-05 19:25:30 +00:00
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10"
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:48:17 +00:00
#push
p = push
2016-04-05 19:25:30 +00:00
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
2015-09-15 17:15:20 +00:00
required = true