-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitconfig
64 lines (52 loc) · 1.2 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
[user]
name = Magno Biét
email = magno.biet@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore
autocrlf = input
attributesfile = ~/.gitattributes
[color]
ui = true
grep = auto
interactive = auto
status = 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
[merge]
log = true
tool = vim
[diff]
external = ~/diff.py
[push]
default = tracking
[alias]
last = log -1 HEAD
goto = checkout
l = log --pretty=custom --abbrev-commit --all
lg = log --pretty=custom --abbrev-commit --all --graph
sync = !git pull && git push
undo = reset --soft HEAD~1
unchanged = update-index --assume-unchanged
changed = update-index --no-assume-unchanged
resolve-mine = checkout --ours
resolve-theirs = checkout --theirs
revert = reset --soft HEAD~1
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"
[pretty]
custom = "%C(red)%h %C(reset)-%C(yellow bold)%d %C(reset)%s %C(green)(%ar) %C(reset)"
[url "https://"]
insteadOf = git://
[commit]
template = ~/.gitmessage