forked from xsawyerx/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
57 lines (51 loc) · 1.43 KB
/
gitconfig
File metadata and controls
57 lines (51 loc) · 1.43 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
49
50
51
52
53
54
55
56
57
#[user]
# email = sysboss@mail.ru
# name = sysboss
[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"
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
branches = for-each-ref --sort=-committerdate refs/heads/
stashed = stash list --pretty=format:'%gd: %Cred%h%Creset %Cgreen[%ar]%Creset %s'
hist = log --graph --all --color=always --decorate
find = log -p --reverse -S
# 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
# Sometimes fails me terribly
#[diff]
# algorithm = patience
# compactionHeuristic = true
[core]
editor = vim
[url "ssh://git@github.com/"]
insteadOf = "gh:"
[push]
default = simple
[credential]
helper = cache