-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
44 lines (41 loc) · 1.13 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
41
42
43
44
[user]
name = Matt Chapman
email = [email protected]
mail = [email protected]
[core]
editor = vim
whitespace=fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol
[push]
default = simple
[merge]
defaultToUpstream = true
[alias]
st = status -sb -uno
ll = log --pretty=format:'%C(yellow)%h %Cblue%ar %an%Cgreen%d %Creset%s'
ls = log --name-status
ci = commit
br = branch -v
bc = !git co master && git pull && git branch --merged | grep -v \"\\*\" | xargs -n 1 git branch -d && git remote prune origin && git gc --prune=now
co = checkout
unstage = reset HEAD
df = !git diff && git diff --staged
wd = diff --word-diff
clear = reset --hard
up = !git stash && git pull --rebase
re = remote -v
mergekeep = merge -s recursive -X ours
keep = merge -s recursive -X ours
mergetoss = merge -s recursive -X theirs
toss = merge -s recursive -X theirs
changelog = log --pretty=format:'%s by %an (%h)'
uncommit = reset --soft HEAD^
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[branch]
autosetuprebase = always