-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitconfig
38 lines (38 loc) · 1.24 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
[user]
name = put your name here
email = [email protected]
[push]
default = tracking
[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
undo-commit = reset --soft HEAD^
oldbranches = for-each-ref --sort=committerdate --format='%(committerdate:short) %(refname:short)' refs/heads/
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = tracking
[branch]
autosetuprebase = always
[url "[email protected]:"]
insteadOf = "https://github.com/"
[help]
autocorrect = 30
[pull]
rebase = true
[diff]
algorithm = patience