-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
118 lines (111 loc) · 2.72 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[color]
diff = auto
status = auto
branch = auto
branch = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[github]
user = filipeamoreira
[branch]
autosetupmerge = true
autosetuprebase = always
[core]
quotepath = false
filemode = true
excludesfile = /Users/guto/.config/git/gitignore_global
autocrlf = input
symlinks = true
[alias]
# I like using the interactive mode to make complex commits
ai = add --interactive
# All the aliases relate to commits. Note that
# they are grouped by common prefixes, so I don't
# confuse what I want done by accident.
c = commit
# commit with a message
cm = commit -m
cma = commit -a -m
# amending the previous commit
ca = commit --amend
caa = commit -a --amend -C HEAD
# reset
## soft resets
r = reset
r1 = reset HEAD^
r2 = reset HEAD^^
## hard resets
rh = reset --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
# shortcuts for commands
s = status
st = status
d = diff
a = add
b = branch -a -v
f = fetch
r = reset
p = push
co = checkout
ci = commit
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
lol = log --graph --decorate --oneline
lola = log --graph --decorate --oneline --all
l = log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; :"
gone = ! git-gone
[push]
default = simple
[merge]
stat = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[help]
autocorrect = 1
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[credential]
helper = osxkeychain
[magit]
hideCampaign = true
[user]
useConfigOnly = true
name = Filipe Moreira
email = filipe.moreira@nationbuilder.com
[user "main"]
name = Filipe Moreira
email = code@filipeamoreira.com
[user "nationbuilder"]
name = Filipe Moreira
email = filipe.moreira@nationbuilder.com
[init]
defaultBranch = main
templateDir = /Users/guto/.git-template
[commit]
template = /Users/guto/.gitmessage