forked from kvesteri/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
33 lines (33 loc) · 1.38 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[user]
name = Eero Vehmanen
email = [email protected]
[alias]
br = branch
ci = commit
co = checkout
df = diff
st = status
dmerged = !git branch --merged master | grep -v \"\\*\" | grep -v \" master\" | xargs -n 1 git branch -D
backup = !git checkout -b backup/$(git rev-parse --abbrev-ref HEAD)/$(date +%Y%m%d-%H%M%S) && git checkout -
branches = !git for-each-ref --color=always --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' | tail -15
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
[branch]
autosetuprebase = always
[color]
ui = true
[core]
attributesfile = ~/.gitattributes
excludesfile = ~/.gitignore
pager = diff-highlight | diff-so-fancy | less --tabs=1,5 -R
[push]
default = current
[rerere]
enabled = true
[url "[email protected]"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]"]
insteadOf = "heroku:"