-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
35 lines (35 loc) · 1.18 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
34
35
[color]
diff = auto
status = auto
branch = auto
[merge]
summary = true
tool = emerge
[alias]
ci = commit
amend = commit --amend
co = checkout
diffc = diff --cached
rb = !grb
who = shortlog -s -n
pt = push --tags origin master
pullr = pull --rebase
st = status -s
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]"
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --stat
ld = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" -p
standup = !git log --since=yesterday --author=$(git config user.email) --oneline
pb = !git push origin $(git rev-parse --abbrev-ref HEAD)
save = !git add -A && git commit -m 'SAVEPOINT'
cleanup = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
new = !git init && git commit --allow-empty -m 'Initial commit'
browse = !gh pr view --web
[user]
name = Christopher Grim
[push]
default = nothing
[core]
editor = nvim
excludesfile = ~/.gitignore.global
[pull]
ff = only