-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
85 lines (85 loc) · 2.59 KB
/
dot_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#[url "[email protected]:"]
# insteadOf = https://github.com/
[user]
name = Samuel Husso
email = [email protected]
[color]
ui = auto
[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
[alias]
ls = log --stat --pretty='format:%Cblue[%ad] %Cred<%h> %Creset(%an) %Cgreen%s' --date=short --graph --decorate
lsp = log --stat -p --pretty='format:%Cblue[%ad] %Cred<%h> %Creset(%an) %Cgreen%s' --date=short --graph --decorate
lp = log --stat -p --decorate --graph
l = log --stat --graph --decorate
logreview = log --stat --reverse -M
sa = status
s = status -uno
sc = status .
co = checkout
b = branch
br = branch --remote
bn = rev-parse --abbrev-ref HEAD
r = remote
rv = remote -v
ba = branch -a
ui = update-index
sl = stash list
ssp = stash show -p
sp = stash pop
whatchanged = log --stat -M --reverse
whatchangedp = log --stat -M -p --reverse
g = grep -in -E
cp = cherry-pick
dc = diff --cached -p --stat
d = diff -p --stat
dm = "!f() { git d master; }; f" # diff to current master
dmc = "!f() { git d $(git merge-base $(git bn) master); }; f" # diff to master when branch was created
wd = diff --word-diff
svnfetch = svn fetch --fetch-all
undo = reset --soft 'HEAD^'
clean-force = clean -fdx
pull = pull --ff-only
up = remote update -p
subs = submodule update --remote --init
ss = stash save
sshow = "!f() { git stash show stash^{/$*} -p; }; f"
info = remote show origin
usrp = "!f() { git up && git stash && git rebase && git stash pop; }; f"
ur = "!f() { git up && git rebase; }; f"
ur-sub = "!f() { cd $1 && git ur; }; f"
ur-subs = "!f() { git submodule foreach git ur; }; f"
subs-master = "!f() { git submodule foreach 'git co master && git ur' ; }; f"
mod-setup = "!f() { git subs && git subs-master; }; f"
ds = diff --stat
[log]
date = local
[credential]
helper = store
[core]
ignorecase = false
pager = less -r
# autocrlf = false
# whitespace = cr-at-eol
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[pager]
branch = false
[init]
defaultBranch = main