This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
75 lines (75 loc) · 2.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[alias]
# abbreviations
c = commit
ca = commit --amend
co = checkout
l = log
m = merge
ma = merge --abort
mf = merge --ff-only
ms = merge --squash
p = pull
pf = pull --ff-only
pr = pull --rebase=true
res = reset
res-h = reset --hard
r = rebase
ra = rebase --abort
rb = rebase -i master
rc = rebase --continue
ri = rebase --interactive
s = status
# alias longer commands
bunch = log --oneline --graph --decorate --all
cdiff = diff --cached
file = log --name-only --format=oneline
last = cat-file commit HEAD
logm = log --format=medium --abbrev-commit --stat --date=relative
safe-pull = pull --ff-only
to-head = reset --hard @
to-origin = reset --hard @{u}
to-parent = reset --hard @^
to-grand-parent = reset --hard @~2
dirty-ignore = update-index --assume-unchanged
# complex commands
bunche = log --color --pretty=format:'%h %d %s%n%an - %ai (%ar)' --abbrev-commit --graph --decorate --all
date-blame = log --pretty=format:'%ad%x09%an%x09%s'
reedit-commit = ! ~/srv/dotfiles/git/reedit-commit.sh
edit-commit-files = !git diff-tree --no-commit-id --name-only -r HEAD | xargs -o $EDITOR
latest-branches = !git reflog | gawk 'match($0, /checkout: moving from ([[:graph:]]+)/, matches) { if( !x[matches[1]]++ ) print matches[1] }' | head -n 10
list-branch-files = diff --name-only staging...HEAD
; delete-tag = push origin :refs/tags/show
[color]
ui = auto
status = auto
branch = auto
interactive = auto
[include]
path=.gitconfig_local
[push]
default = upstream
[user]
name = "Tim Reddehase"
email = robustus@rightsrestricted.com
; signing key for robustus@rightsrestricted.com
; use DD3412FD for tredd@informatik.uni-bremen.de
signingkey = 8C402438
[init]
; templatedir = ~/.gitconfs/template_symlinks
[merge]
defaultToUpstream = true
tool = vimdiff
[diff]
tool = vimdiff
algorithm = patience
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
; [mergetool "mvimdiff"]
; cmd = "mvimdiff -f $BASE $LOCAL $REMOTE $MERGED"
; trustExitCode = true
; [difftool "mvimdiff"]
; cmd = mvim -f -d \"$LOCAL\" \"$REMOTE\"
[status]
branch = 1
short = 1