-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
61 lines (50 loc) · 1.18 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
[user]
name = Artur Sousa
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
ignorecase = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
rebase = true
[alias]
s = status
st = status
### add ###
a = add
ap = add -p
### commit ###
c = commit
cm = commit -m
ca = !git add -A && git commit -m
### pull ###
p = pull
pr = pull --rebase
pp = pull --rebase=preserve
pb = "!git pull origin $(git branch-name)"
### push ###
u = push
ub = "!git push origin $(git branch-name)"
### rebase ###
rb = rebase
### diff ###
d = diff
dc = diff --cached
ds = diff --staged
### checkout ###
o = checkout
ob = checkout -b
### log ###
l = log --graph
lp = log -p
lo = log --oneline --all --graph
ll = log --decorate --date=relative --pretty=\"format:%C(yellow)%h%C(auto)%d%C(reset) %s %C(bold blue)[%ad by %an]\"
lll = log --decorate --graph --date=relative --pretty=\"format:%C(yellow)%h%C(auto)%d%Creset %s %C(bold blue)[%ad by %an]\"
### clean ###
cl = clean -ffdx
### general ###
branch-name = rev-parse --abbrev-ref HEAD