/
.gitconfig
44 lines (43 loc) · 1.47 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
[alias]
s = status
ss = status -s
si = status --ignored
b = branch
ba = branch -a
pl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
co = checkout
l = log --graph --oneline --decorate
lns = log --name-status
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]'
d = diff
ds = diff --staged
dnw = diff --ignore-space-at-eol -b -w --ignore-blank-lines
amend = commit --amend -C HEAD
undo = reset --soft HEAD^
dt = difftool
ls = ls-files
local = log --branches --not --remotes
ahead = !git log HEAD..$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
gpush = !git push origin HEAD:$(git symbolic-ref HEAD 2>/dev/null | sed s:/heads/:/for/:g)
cp = cherry-pick
ls-assume-unchanged = !git ls-files -v | grep ^[[:lower:]] | awk '{ print $2 }'
branches = !git for-each-ref --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:iso8601)%09%(color:white)%(refname:short)' refs/heads
pf = push --force-with-lease
[push]
default = current
[color]
ui = true
[core]
editor = vim --noplugin
excludesfile = ~/.gitignore
[merge]
defaultToUpstream = true
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[sendemail]
smtpEncryption = tls
smtpServer = smtp.gmail.com
smtpUser = apbarrero@gmail.com
smtpServerPort = 587