-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
55 lines (55 loc) · 1.7 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
52
53
54
55
[core]
editor = nvim
autocrlf = false
safecrlf = true
excludesfile = ~/.gitignore_global
[color]
diff = true
status = auto
branch = auto
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
[alias]
co = checkout
clone-all = clone --recurse-submodules
pull-all = pull --recurse-submodules
ci = commit
st = status
br = for-each-ref --sort=-committerdate refs/heads/ refs/remotes/origin/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) - %(authorname) - %(color:green)%(committerdate:relative)%(color:reset)'
l = log --color --abbrev-commit --format=oneline HEAD
ll = log --color --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cs) %C(bold blue)<%an>%Creset' --abbrev-commit
hist = log --follow --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
pr = !sh -c 'git fetch $1 pull/$2/head:pr-$1-$2 && git checkout pr-$1-$2' -
relnotes = log --pretty='%h %ad %an: %s' --date=short --no-merges
dft = difftool
[push]
default = simple
[credential]
helper = cache --timeout=3600
[include]
path = .gitconfig_local
[diff]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[init]
defaultBranch = main