forked from nethunter/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
45 lines (41 loc) · 1.27 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
[user]
email = nethunter@studiosh.com
name = David Tabachnikov
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff --color
dc = diff --color --cached
lg = log -p --color
who = shortlog -s --
lp = log --graph --pretty=format:'%Cred%h%Creset — %s %Cgreen(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --color
undo = reset --hard
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
git = "!f() { git \"$@\"; }; f"
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
heirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
# coloring!
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = simple