forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
40 lines (40 loc) · 1.25 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
36
37
38
39
40
[user]
name = Stephen Ringer
email = [email protected]
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
current = yellow rbold
frag = magenta bold
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[pull]
rebase = true
[diff]
algorithm = patience
[branch]
autosetuprebase = always
#[url "[email protected]:"]
# insteadOf = "https://github.com/"
[help]
autocorrect = 30
[alias]
gr = log --graph --full-history --all --color --pretty=format:\"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s\"
forceupdatelive = !git fetch origin && git checkout live && git reset --hard origin/live
review = !sh -c 'REF=`git rev-parse --symbolic-full-name --abbrev-ref HEAD` && git fetch $1 $2:mergeReview -f && git checkout mergeReview && git rebase $REF && git checkout $REF && git diff HEAD..mergeReview' -
approve = merge mergeReview
pr = !git review origin refs/pull/$1/head
branches = for-each-ref --sort=committerdate --format='%(committerdate:short) %(refname:short)' refs/heads/ refs/remotes/
[core]
excludesfile = /home/sringer/.gitignore_global
editor = /usr/bin/nvim