-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
107 lines (105 loc) · 3.06 KB
/
gitconfig
File metadata and controls
107 lines (105 loc) · 3.06 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# vim: syntax=gitconfig
[user]
name = Dominic Hopf
[include]
path = .gitconfig.dmaphy
[includeif "gitdir:/home/dmaphy/projects/"]
path = .gitconfig.dmaphy
[includeif "gitdir:/home/dmaphy/projects/fedora/"]
path = .gitconfig.fedora
[includeif "gitdir:/home/dmaphy/projects/inovex/"]
path = .gitconfig.inovex
[alias]
commit = commit --signoff
chgd = diff HEAD
fpu = format-patch -s -p origin/main
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f]\\+/\"&\"/g' ; echo '}'; }; f"
one = "!sh -c 'git show -s --pretty=\"tformat:%h (%s, %ai\" \"$@\" | sed -e \"s/ [012][0-9]:[0-5][0-9]:[0-5][0-9] [-+][0-9][0-9][0-9][0-9]$/)/\"' -"
out = !git push --dry-run
purge = !git checkout $(git rev-parse --show-cdup) && git clean -xdf
serve = !sh -c 'git daemon --reuseaddr --verbose \"$@\" --base-path=. --export-all ./.git' sh
tagme = !sh -c '[ -z "$1" ] && exit 1 || git tag -s v\"$1\" -m \"release \"$1\"\"' sh
who = "!sh -c 'git log -1 --pretty=\"format:%an <%ae>\" --author=\"$1\"' -"
wdiff = diff --color-words
cat = !cat @
ds = diff --stat
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
uncommit = reset --soft HEAD^
unstage = reset
branch-info = "!sh -c 'git branch --no-color | \
sed -e \"s/*/ /\" | \
while read branch; do \
git --no-pager log -1 --format=format:\"%Cred$branch:%Cblue %s %Cgreen%h%Creset (%ar)%n\" $branch; \
done'"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
olg = log --abbrev-commit --abbrev=6 --pretty=oneline
# tfetch is for fetching deleted tags from the remote.
tfetch = fetch --prune origin '+refs/tags/*:refs/tags/*'
push-mr = "!sh -c 'git push -o merge_request.create -o merge_request.target=master --set-upstream origin $(git rev-parse --abbrev-ref HEAD)'"
yd = !sh -c ydiff -s -w0
yl = !sh -c ydiff -ls -w0
fpush = push --force-with-lease
[branch]
sort = -committerdate
autoSetupMerge = simple
autoSetupRebase = always
[column]
ui = auto
[color]
branch = auto
diff = auto
interactive =auto
status = auto
ui = auto
[commit]
verbose = true
[core]
fsmonitor = true
untrackedCache = true
pager = less -x5,9
excludesFile = ~/.gitignore
[diff]
tool = meld
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[feature]
experimental = true
[fetch]
prune = true
pruneTags = true
all = true
[grep]
patternType = perl
[help]
autocorrect = prompt
[init]
defaultBranch = main
templateDir = /home/dmaphy/.git-template
[merge]
tool = meld
log = true
conflictstyle = zdiff3
[tag]
sort = version:refname
[tar "tar.xz"]
comand = xz -c
[pager]
color = true
[pull]
rebase = true
[push]
default = upstream
autoSetupRemote = true
followTags = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[remote "origin"]
prune = true
[rerere]
enabled = true
autoupdate = true