-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
48 lines (48 loc) · 1.25 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
[user]
name = Igor Ilić
email = [email protected]
[github]
user = igorilic
[color]
ui = true
[merge]
ff = false
[branch]
autosetuprebase = always
rebase = preserve
[diff "tex"]
wordRegex = "\\\\[a-zA-Z]+|[{}]\\\\.|[^\\{}[:space:]]+"
[pull]
rebase = true
[rebase]
autosquash = true
autostash = true
[alias]
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
graph = log --all --graph --decorate --oneline
br = branch
ci = commit
co = checkout
di = diff
ds = diff --staged
wd = diff --word-diff --ignore-all-space
wds = diff --staged --word-diff --ignore-all-space
difftex = difftool -y -t latex
st = status
lg = log --oneline --reverse
dls = diff-tree --no-commit-id --name-status -r
getroot = !pwd
oldest-ancestor = !zsh -c 'diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1' -
branchlog = !sh -c "git log `git oldest-ancestor`.."
branchdiff = !sh -c "git diff `git oldest-ancestor`.."
rebase2fork = !zsh -c 'git rebase -i $(git merge-base --fork-point "${0:-master}")'
[log]
abbrevCommit = true
[status]
short = true
[rerere]
enabled = true
[difftool.latex]
cmd = latexdiff "$LOCAL" "$REMOTE"
[credential]
helper = cache