-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
76 lines (76 loc) · 2.5 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
75
76
[color "status"]
added = green
changed = red bold
untracked = magenta bold
[color "branch"]
remote = yellow
[user]
name = Murilo Vasconcelos
email = [email protected]
[init]
templatedir = ~/.git_template
defaultBranch = main
[alias]
co = checkout
br = branch
ci = commit
st = status
unstage = reset HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
brs = for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
glog = log -E -i --grep
car = commit --amend --no-edit
uncommit = reset --soft HEAD^
aa = add --all
adp = add --patch
b = branch
ri = rebase -i
sdot = status . --short --branch
stat = show --stat
si = status --ignored
dc = diff --word-diff --cached --color-words
df = diff --word-diff --color-words
pl = pull
plr = pull --rebase
rim = git config --global alias.plr \"pull --rebase\" rebase --interactive $(git merge-base master HEAD)\"git config --global alias.riu \"git config --global alias.plr \"pull --rebase\" rebase -i $(git upstream)\"git config --global alias.sl \"log --oneline --decorate --graph -20
upstream = rev-parse --abbrev-ref --symbolic-full-name @{u}
sl = log --oneline --decorate --graph -20
slap = log --oneline --decorate --all --graph
slp = log --oneline --decorate --graph
commend = commit --amend --no-edit
it = !git init && git commit -m “root” --allow-empty
stsh = stash --keep-index
staash = stash --include-untracked
staaash = stash --all
shorty = status --short --branch
grog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)\"
po = push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
pu = push -u
visual = !gitk
brs= for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
dd = branch --merged | egrep -v \"(^\\*|master|develop)\" | xargs git branch -d
[push]
default = upstream
[fetch]
prune = true
[diff]
tool = vimdiff
[merge]
tool = diffmerge
ff = only
conflictstyle = diff3
[difftool]
prompt = false
[hub]
protocol = ssh
[gui]
recentrepo = /Users/murilo/code/quant/fundos_downloader
[core]
autocrlf = input
excludesfile = /Users/murilo/.gitignore_global
editor = code --wait
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f