-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
73 lines (66 loc) · 1.97 KB
/
dot_gitconfig
File metadata and controls
73 lines (66 loc) · 1.97 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
[core]
# Makes vim the default editor when editing .git files.
editor = vim
# Doesn't add crlf to each line ending.
autocrlf = input
# Allows "git status" to be quicker, at the cost of some small CPU/Memory usage.
fsmonitor = true
untrackedCache = true
[user]
email = sheppardryan@rogers.com
name = Ryan Sheppard
[alias]
# -v adds a commented out diff to the commit message.
c = commit -v
# Always pull when checking out a new branch (Stops an issue with testing old branches).
ch = !sh -c 'git checkout -q $@ \
&& git diff --name-status \
&& echo Switched to branch $(git branch --show-current) \
&& git pull origin $(git branch --show-current)' -
d = diff
ds = diff --staged
l = log --oneline
p = push
rs = restore
re = reset
s = status
[advice]
# Remove the "Use git add to..." hints from git status.
statusHints = false
[branch]
# When listing branches, sort them by last commit date instead of alphabetically.
sort = -committerdate
[column]
# Breaks up some single column lists into multiple columns.
ui = auto
[tag]
# Better sorting for semantic versioning.
sort = version:refname
[diff]
algorithm = histogram
renames = true
# Changes the color of code that has simply moved instead of changed.
colorMoved = plain
# Tells you where the diff is coming from.
mnemonicPrefix = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[fetch]
prune = true
pruneTags = true
all = true
[help]
autocorrect = prompt
[rerere]
# Reuses old rebase conflict resolutions.
enabled = true
autoupdate = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[merge]
# Adds the original "base" change looked like.
conflictstyle = zdiff3