-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
71 lines (65 loc) · 2.04 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
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = 11
frag = magenta bold
old = red bold
new = green bold
commit = yellow bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[user]
name = Gustavo Marin
email = [email protected]
excludesfile = /home/gustavo.marin/.gitignore_global
editor = vim
pager = diff-so-fancy | less --tabs=2 -RFX
[alias]
st = status
s = status -s -b
co = checkout
br = branch
up = rebase
ci = commit
stuno = status --untracked-files=no
unstage = reset HEAD --
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
review = !sh -c 'post-review --guess-summary --guess-description'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
standup = !"git log --reverse --branches --since='$(if [[ "Mon" == "$(date +%a)" ]]; then echo "last friday"; else echo "yesterday"; fi)' --author=$(git config --get user.email) --format=format:'%C(cyan) %ad %C(yellow)%h %Creset %s %Cgreen%d' --date=local"
### diff ###
# diff - show changes not yet staged
dc = diff --cached
# diff - show changes about to be commited
ds = diff --staged
# diff - show changes but by word, not line
dw = diff --word-diff
# diff deep - show changes with our preferred options. Also aliased as `diff-deep`.
dd = diff --check --dirstat --find-copies --find-renames --histogram --color
permission-reset = !git diff -p -R --no-ext-diff --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply
[merge]
tool = meld
[push]
default = simple
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
quotepath = false
autocrlf = input
[interactive]
diffFilter = diff-so-fancy --patch
[init]
defaultBranch = main