-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
executable file
·96 lines (96 loc) · 3.12 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
[user]
name = joao paulo
email = jpcamargo+github@gmail.com
signingkey = 37679CDD
[diff]
color = true
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
editor = subl -n -w
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
[alias]
s = status -s
st = status
f = fetch
ci = commit
ca = commit -a -m
cam = commit -v --amend
aa = add --all --intent-to-add
ap = add --patch
au = add -u
b = branch
bb = for-each-ref --sort=-committerdate refs/remotes/origin/ --format='%(committerdate) %(refname) %(authorname)'
dedoduro = "!r() { if [ "$1" ]; then git bb | grep $1 | awk '{ print $7 \" \" $8 \" \" $9 \" \" $10 };' | sort; else git bb | awk '{ print $8 \" \" $9 \" \" $10 };' | sort | uniq -c | sort -r; fi }; r"
co = checkout
d = diff --patch-with-stat
df = diff
dc = diff --cached
l = log --pretty=oneline -n 20 --graph
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
m = merge --ff-only
rb = rebase -S
rba = rebase --abort
rbc = rebase --continue
rbi = rebase -i
recent = "!r() { cur=$(git rev-parse --abbrev-ref HEAD); git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | sed \"s/m${cur}|/m* ${cur}|/\" | column -ts'|'; }; r"
originrecent = "!r() { cur=$(git rev-parse --abbrev-ref HEAD); git for-each-ref --sort=-committerdate refs/remotes/origin --format='%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | sed \"s/m${cur}|/m* ${cur}|/\" | column -ts'|'; }; r"
rh = reset HEAD
rhh = reset HEAD --hard
touch = commit -m \"\" --allow-empty --allow-empty-message
aliases = "!r() { git config --get-regexp '^alias' | sed \"s/^alias.//\" | sed \"s/ / = /\" | column -ts'='; }; r"
# Switch to a branch, creating it if necessary
go = checkout -B
wc = whatchanged -p --abbrev-commit --pretty=medium
# Undo a `git push`
undopush = push -f origin HEAD^:master
[mergetool "Kaleidoscope"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" \"$REMOTE\"
[mergetool]
prompt = false
[merge]
tool = Kaleidoscope
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[diff]
tool = Kaleidoscope
[help]
autocorrect = 1
[blame]
date = short
[grep]
lineNumber = true
patternType = extended
[fetch]
prune = true
[branch]
autosetupmerge = true
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true