-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
85 lines (47 loc) · 1.46 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
[alias]
co = checkout
ci = commit
cia = commit --amend
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph
s = status -sb
tags = tag -l
branchs = branch -a
remotes = remote -v
logs = log --oneline
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
ap = "!sh -c 'git add --all && git pull \"$0\" master ' "
conflicts = diff --name-only --diff-filter=U
clean-branchs = "!git branch | grep -v master | xargs git branch -D"
# Amend the currently staged files to the latest commit
amend = commit --amend --reuse-message=HEAD
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[push]
default = simple
[pull]
ff = only
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[credential]
helper = store
[url "[email protected]:"]
insteadOf = https://github.com/