-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathgitconfig
More file actions
68 lines (50 loc) · 1.51 KB
/
gitconfig
File metadata and controls
68 lines (50 loc) · 1.51 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
[user]
name = Marc Harter
email = wavded@gmail.com
# GPG signing key. Can be committed as it doesn't contain any secret information.
signingkey = F2FFC7C218753AE036FFAE183569EE928F75D829
[alias]
# Pretty printing of git history.
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
# Quick commit all.
call =! git add -A && git commit
# Clean 'gone' branches (i.e. ones that have been removed from the remote).
gone =! git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
[diff]
# Use vimdiff as the diff tool.
tool = vimdiff
[tag]
# Sort tags by default by version descending.
sort = -version:refname
[merge]
# Do not automatically create merge commits.
ff = only
# Use vimdiff as the merge tool.
tool = vimdiff
[mergetool]
# Do not prompt when using the mergetool.
prompt = false
# Do not keep a backup of merge states.
keepBackup = false
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $BASE $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[fetch]
# Automatically prune remote branches and tags.
prune = true
pruneTags = true
[push]
# Always push current branch to a remote branch with the same name.
default = current
# Push any tags involved in new commits by default.
followTags = true
[pull]
rebase = false
[help]
# Auto run typoed commands.
autocorrect = 1
[commit]
# Sign commits.
gpgSign = true
[core]
# Allow for case sensitivity in naming.
ignorecase = false