-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
51 lines (42 loc) · 1.35 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
[user]
name = user
email = [email protected]
[core]
editor = vim
pager = less -r
excludesfile = /home/igorparanhos/.gitignore_global
[push]
default = simple
[color]
diff = auto
status = auto
branch = auto
[pretty]
# graph = %C(green)%h %C(auto)%d %C(reset)%s %C(blue)%an%C(reset)
graph = %C(green)%h %C(auto)%d %C(reset)%s %C(blue)%an%C(reset) %C(cyan)(%ar)%C(reset)
log = %C(green)%h %C(reset)%ad %C(auto)%d %C(reset)%s %C(blue)%an%C(reset)
[alias]
s = status --short --branch
a = !git add -A && git status --short --branch
b = branch --verbose
d = diff
c = commit
ae = commit --amend
an = commit --amend --no-edit
co = checkout
rb = rebase
rbc = rebase --continue
ch = cherry-pick
fm = "!f() { git log --pretty=log --date=short --grep=$1; }; f"
m = merge --no-ff
wip = "!f() { git add -A; git commit -m \"WIP\"; }; f"
cnow = "!f() { git add -A; git commit -m \"`date +%Y-%m-%dT%H:%M`\"; git pull --rebase; git push; }; f"
l = log --graph --pretty=graph --all
lnp = !git --no-pager log --graph --pretty=graph --all
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t -> \\2/'
# Loads ~/.gitconfig_local.
# Local definition overwrites the ones above.
[include]
path=~/.gitconfig_local
[diff]
tool = meld