-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
69 lines (49 loc) · 1.16 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
63
64
65
66
67
68
[user]
name = Huy Hùng
email = [email protected]
signingkey = 1539EDAFD8107772
[github]
user = hungdh0x5e
[init]
defaultBranch = develop
[push]
default = current
[pull]
rebase = true
[color]
ui = auto
[fetch]
prune = true
[core]
excludesfile = ~/.gitignore
autocrlf = input
pager = less -FMRiX
[commit]
template = ~/.gitmessage
gpgsign = false
[include]
path = ~/.gitconfig.local
[includeIf "gitdir:~/go/src/gitlab.id.vin/"]
path = ~/.gitconfig-work
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[gitflow "branch"]
develop = develop
[diff]
tool = nvimdiff
[merge]
tool = nvimdiff2
[alias]
aa = add --all
ci = commit -v
# Commit all changes
ca = !git add -A && git commit -av
# Add all changes to last commit
caa = !git add -A && git commit --amend -av
# Switch to a branch, creating it if necessary
co = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"