-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
62 lines (49 loc) · 1.22 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[core]
# Excludesfiles allows us to set a global list of things to ignore
excludesfile = ~/dotfiles/.gitignore_global
editor = vi
ignorecase = false
# These are custom color options for the console
[color]
status = auto
diff = auto
[color "status"]
untracked = cyan
changed = green
added = yellow
# Aliases are command shortcuts
[alias]
co = checkout
# lg is now a shortcut for a pretty log with short commit messages
# See the log manpage: https://www.kernel.org/pub/software/scm/git/docs/git-log.html
# for explanations of what these options do
lg = log \
--graph \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit \
--date=relative
ci = commit
s = status
a = add -A
b = branch
p = pull
ph = push -u origin HEAD --tags
d = diff
dc = diff --cached
[user]
name = JC (Jonathan Chen)
email = [email protected]
[init]
defaultBranch = main
[fetch]
prune = true
[merge]
conflictstyle = diff3
[rebase]
updateRefs = true
[pull]
ff = only
[commit]
template = ~/dotfiles/.gitmessage
[submodule]
recurse = true