/
gitconfig
20 lines (20 loc) · 1.11 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[alias]
co = checkout
st = status
ci = commit
search = grep -i --color -n
search-literal = grep --color -n
last = log -1 --decorate
lg = log --graph --date-order --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(cyan)(%an)%Creset %s %Cgreen(%ar)%Creset'
day = log --graph --date-order --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(cyan)(%an)%Creset %s %Cgreen(%ar)%Creset' --since=yesterday
week = log --graph --date-order --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(cyan)(%an)%Creset %s %Cgreen(%ar)%Creset' --since='last week'
month = log --graph --date-order --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(cyan)(%an)%Creset %s %Cgreen(%ar)%Creset' --since='last month'
ready = "!sh -c 'git lg `git rev-parse $(git name-rev --name-only ${1:-HEAD})@{u}`..${1:-HEAD}' -"
pick = "!sh -c './git-pick ${*}' -"
pruny = "!sh -c 'git remote prune origin | tee /dev/tty | sed \"1,2d\" | awk -F\"/\" \"{print \\$2}\" | while read -r branch; do git show-ref \"$branch\">/dev/null && git branch -d \"$branch\"; done' -"
[color]
ui = true
[core]
whitespace = -space-before-tab
[push]
default = current