-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
74 lines (73 loc) · 1.43 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
69
70
71
72
73
74
[color]
ui = auto
[core]
attributesFile = ~/.gitattributes
excludesfile = ~/.gitignore
editor = vim -f
[apply]
whitespace = nowarn
[format]
; pretty = %C(yellow)%h%Cred%d %Creset%s
[alias]
ad = add
au = add -u
bl = blame
br = branch
ca = commit --amend
cb = checkout -b
cl = clone
cm = commit
co = checkout
cp = cherry-pick
dc = diff --cached
df = diff
ft = fetch
lg = log
mr = merge
pl = pull
ps = push
rb = rebase
rm = rm -r
rs = reset
rv = revert
sa = stash apply
sh = show
sl = stash list
sm = submodule
sp = stash pop
ss = stash save
st = status
sw = stash show
psf = push --force-with-lease
commit-count = shortlog -s -n
current-branch = symbolic-ref --short head
merge-commit = !sh -c 'git rev-list $1..master --ancestry-path --merges | tail -n 1' -
psu = !sh -c 'git push -u origin $(git current-branch)' -
rmbranch = !sh -c 'git branch -d $1 && git push origin :$1' -
uncommit = reset --soft head~
[branch]
autosetuprebase = always
[pull]
rebase = true
[push]
default = simple
[merge]
ff = false
[diff]
tool = vimdiff
[github]
user = carlosantoniodasilva
[user]
name = Carlos Antonio da Silva
email = [email protected]
[hub]
protocol = https
[credential]
helper = osxkeychain
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[init]
defaultBranch = main