-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
58 lines (58 loc) · 1.9 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[user]
name = Thomas Krille
[include]
path = .gitconfig.d/userdetails
[alias]
rb = rebase
fa = fetch --all
fu = fetch upstream
fo = fetch origin
st = status -s -b
ci = commit
br = branch
co = checkout
fcum = "!git fetch upstream; git checkout -B master upstream/master"
fcom = "!git fetch origin; git checkout -B master origin/master"
s = stash
sp = stash pop
df = diff
dc = diff --cached
lg = log -p
cp = cherry-pick
who = shortlog -s --
alias = "!sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -"
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
loggraph = log --graph --decorate --pretty=oneline --abbrev-commit
ls = log --decorate --pretty=oneline --abbrev-commit -20 --no-merges
lsm = log --decorate --pretty=oneline --abbrev-commit -20
lsa = log --decorate --pretty=oneline --abbrev-commit
prune-all = !git remote | xargs git remote prune
uncommit = reset HEAD^
cane = commit --all --amend --no-edit
yolo = "!git cane && git push --force"
rau = remote add upstream
merge-mr = !sh -c 'git fcum && git checkout -B merge-request-$1 && git fetch upstream merge-requests/$1/head && git merge --no-edit --no-ff FETCH_HEAD' --
[diff]
compactionHeuristic = true
[diff "blackbox"]
textconv = gpg2 --use-agent -q --batch --decrypt
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitexcludes
pager = less -F -X
[pager]
log = diff-so-fancy | less -F -X
show = diff-so-fancy | less -F -X
diff = diff-so-fancy | less -F -X
[branch]
autosetuprebase = always
[push]
default = current
[merge]
tool = meld
[rebase]
autosquash = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true