-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgitconfig
67 lines (55 loc) · 1.85 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
[user]
# Altere para seu username e email
name = Marcus Martins
email = [email protected]
colors = auto
[core]
editor = vim
# pager = delta --plus-color="#012800" --minus-color="#340001" --theme='Monokai Extended'
[interactive]
# diffFilter = delta --color-only
[color]
ui = true
[alias]
s = status -sb
get = pull origin master --no-commit
c = commit -am
dc = diff --check
slog = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
b = "for-each-ref --format='%(if)%(HEAD)%(then)*%(else) %(end)\
%(color:red normal) %(objectname:short) %(color:white no-bold normal)- \
%(if:equals=refs/remotes)%(refname:rstrip=2)%(then)%(color:red bold normal)%(else)%(color:green bold normal)%(end)\
%(refname:short) %(if)%(upstream)%(then)%(color:white no-bold normal)-> %(color:red normal)%(upstream:short) %(end)\
%(color:green no-bold normal)(%(authordate:relative)) %(color:blue bold normal)<%(authorname)>'\
--sort='authordate' refs/heads refs/remotes"
remotes = remote -v
tags = tag -l
branches = branch -a
bdiff = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
d = diff
who = shortlog -s -n --no-merges
news = shortlog --since=yesterday
uncommit = reset --soft HEAD^
chekcout = checkout
gi = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
[merge]
tool = vimdiff
[mergetool "vimdiff"]
cmd = vim -d "$LOCAL" "$MERGED" "$REMOTE"
[push]
default = simple
[grep]
break = true
heading = true
lineNumber = true
[log]
mailmap = true
# Work configs
[includeIf "gitdir:/Users/mmartins/work/"]
path = /Users/mmartins/.gitconfig-work
[url "[email protected]:"]
insteadOf = https://github.bus.zalan.do
[url "[email protected]:"]
insteadOf = https://github.com
[init]
defaultBranch = main