-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
54 lines (43 loc) · 1021 Bytes
/
gitconfig
File metadata and controls
54 lines (43 loc) · 1021 Bytes
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
[user]
email = [email protected]
name = William Mak
[github]
user = wmak
[push]
default = simple
[url "[email protected]"]
insteadOf = github
[url "[email protected]"]
insteadOf = bitbucket
[url "[email protected]"]
insteadOf = gitlab
[core]
editor = "nvim"
excludesfile= "~/.gitignore"
[color]
ui = true
[color "branch"]
current = green bold
local = blue
remote = yellow
[alias]
l = log -n20
s = status
st = stash -m
stl = stash list
a = add
c = commit --verbose
cb = checkout -b
co = checkout
p = push
psu = push --set-upstream origin
g = grep -np --break --heading
pu = pull
edit = !$EDITOR $(git status --short | awk '$1 ~ /^M|A|U/ {print $2}' )
lo = log --graph --pretty=format:'%C(auto,red)%h%C(auto,reset) -%C(auto)%d %C(auto,reset)%s %C(auto,blue)<%an> %C(auto,reset)%C(auto,cyan)(%ad)%C(auto,reset)' --abbrev-commit --date=relative
[merge]
tool = vimdiff
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true