-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
55 lines (46 loc) · 1.36 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
[alias]
alias = !git-alias
backup = !git ls-files --others --exclude-standard -z | xargs -0 zip -r ~/Code/backup-untracked/$(git rev-parse --show-toplevel | xargs basename).zip
cm = commit -am
cnt = rev-list --all --count
co = checkout
d = diff
dv = difftool -t vimdiff -y
last = log -1 HEAD --stat
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
ll = log --oneline
p = push -u origin HEAD
pl = pull
rv = remote -v
s = status -sb
se = !git rev-list --all | xargs git grep -n --full-name -F
undocommit = reset HEAD~
undopush = push -f origin HEAD^:master
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
commit = green bold
frag = magenta bold
meta = yellow bold
old = red bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
attributesfile = ~/.gitattributes
editor = vim
excludesfile = ~/.gitignore
[fetch]
prune = true
[log]
date = relative
[pull]
rebase = false
[push]
followTags = true
[user]
email = [email protected]
name = Pedro Rodrigues