-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
31 lines (31 loc) · 932 Bytes
/
.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
[user]
name = Roberto MF
email = git@virgulilla.com
[push]
default = simple
[color]
ui = auto
[alias]
# Short commands
b = branch --all
c = commit -m
d = diff
ds = diff --staged
f = fetch --all --prune
# Pretty log alias from http://stackoverflow.com/a/9074343
l = 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
# Navigate throught commit's patches. n go forward, shift+n go backwards
lp = -c core.pager='less --pattern=^commit.*$' log --patch
s = status --short --branch
# Full word commands
amend = commit --amend
snippet = commit --allow-empty-message -m ""
pop = stash pop
prune = remote prune
unstage = reset HEAD --
# Mirroring commands
mirror = clone --mirror
mirror-update = remote update
mirror-push = push --mirror
[pull]
rebase = true