forked from DawnAngel/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
48 lines (47 loc) · 1.51 KB
/
Copy pathgitconfig
File metadata and controls
48 lines (47 loc) · 1.51 KB
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
[user]
name = carlosescura
email = carlosescura@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore_global
[merge]
tool = vimdiff
[color]
ui = auto
[color "branch"]
current = yellow bold
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = yellow bold
old = red bold
new = green bold
[color "status"]
added = green
changed = red
untracked = cyan
[alias]
st = status -sb
ci = commit
br = branch
co = checkout
df = diff --no-ext-diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lolo = log --graph --decorate --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ls = ls-files
d1 = show --pretty="format:" --name-only
d2 = diff --name-only
# some resets without explanation
r = reset
r1 = reset HEAD^
# tag listing by order
tags = for-each-ref --count=10 --sort=-taggerdate --format=' %(tag) --> %(*authordate) %(*authoremail)' refs/tags
# whatthecommit.com alias
ciw = !git add -A && git commit -m \"$(curl -s whatthecommit.com/index.txt)\"
[fetch]
prune = true
[credential]
helper = osxkeychain