-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig
87 lines (81 loc) · 1.88 KB
/
dot_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
76
77
78
79
80
81
82
83
84
85
86
87
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = mcgonagle
email = [email protected]
signingkey = FBD596208D29D13D
[alias]
vlog = " log --graph --date-order --date=relative --pretty=format:\"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n\" --color"
co = checkout
st = status
# mostly from https://github.com/citizen428/dotfiles/blob/master/git/.gitconfig
#
# I like using the interactive mode to make complex commits
a = add --all
ai = add --interactive
# All the aliases relate to commits. Note that
# they are grouped by common prefixes, so I don't
# confuse what I want done by accident.
c = commit
# commit with a message
cm = commit -m
cma = commit -a -m
# amending the previous commit
ca = commit --amend
caa = commit -a --amend -C HEAD
deleted = log --diff-filter=D --summary
# reset
## soft resets
r = reset
r1 = reset HEAD^
r2 = reset HEAD^^
## hard resets
rh = reset --hard
rh1 = reset HEAD^ --hard
rh1 = reset HEAD^^ --hard
# shortcuts for commands
b = branch
co = checkout
d = diff
f = fetch
l = log
l1 = log --oneline
lg = log --graph --oneline --decorate --date=relative --all
m = merge
mt = mergetool
p = pull
rp = git remote prune origin
s = status -sb
st = status
sw = switch
conflicts = diff --name-only --diff-filter=U
[color]
ui = auto
[core]
editor = nvim
excludesfile = /Users/tom/.gitignore_global
pager = less -x4
[alais]
br = branch
[push]
default = simple
[pull]
rebase = true
ff = only
[fetch]
prune = true
[merge]
ff = false
tool = vscode
[grep]
lineNumber = true
[diff]
wsErrorHighlight = all
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[mergetool "vscode"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED