forked from lqueryvg/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
45 lines (42 loc) · 1.96 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
[include]
path = ~/dotfiles/gitconfig/personal
[includeIf "gitdir:~/projects/"]
path = ~/dotfiles/gitconfig/client
[difftool]
prompt = false
[alias]
bnuke = !sh -c 'git branch -D $1 || git push origin :$1' -
bd = !sh -c 'git branch -D $1' -
bvv = branch -vv
d = difftool
dc = diff --cc
diffc = diff --name-status --oneline
alias = config --get-regexp ^alias\\.
co = checkout
br = branch
prm = pull --rebase=i origin master
lol = log --oneline --decorate --graph
st = status
logg = log --pretty=format:'%h %ce %cd - %s' --graph --stat
lg0 = log --oneline
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar) %G? %C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s %C(reset) %C(dim white)- %an%C(reset)' --all
lg3 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s %C(reset) %C(dim white)- %an%C(reset)' --all --show-signature
#for following to work https://github.com/jwiegley/git-scripts/blob/master/git-forest needs to be installed
#lg3 = forest --pretty=format:\"%C(red)%h %C(magenta)(%ar) %C(blue)%an %C(reset)%s\" --style=15 --reverse
lognames = log --oneline --name-only --pretty=format:'%h %ce %cd - %s' --graph --stat
lgn = log --oneline --name-only --pretty=format:'%h %ce %cd - %s' --graph --stat -- . ':doc/*html'
gn = "!git branch -vv | grep gone"
[core]
excludesfile = ~/.gitignore
#editor = vim
#editor = "code --wait"
[diff]
tool = vdiff
[fetch]
prune = true
[difftool "vdiff"]
cmd = vdiff \"$LOCAL\" \"$REMOTE\"
# [difftool "sourcetree"]
# cmd = vdiff \"$LOCAL\" \"$REMOTE\"
# path =