-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
29 lines (29 loc) · 861 Bytes
/
dot_gitconfig
File metadata and controls
29 lines (29 loc) · 861 Bytes
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
[core]
excludesfile = ~/.gitignore
editor = nvim
[user]
name = Dmitriy Korotayev
email = dmitriy@foreverdev.pro
[alias]
s = status
b = branch
co = checkout
a = add
ap = add --patch
ai = add --interactive
c = commit --verbose
lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative
slog = log --oneline
pb = "!git push -u origin \"$(git rev-parse --abbrev-ref HEAD)\""
pr = "!xdg-open \"$(git remote -v | grep origin | grep push | cut -f 2 | cut -d \" \" -f 1 | sed -e \"s|git@\\(.*\\):\\(.*\\).git|https://\\1/\\2|\")/compare/master...$(git rev-parse --abbrev-ref HEAD)?expand=1\""
[push]
default = simple
[pull]
rebase = true
[merge]
ff = no
[init]
defaultBranch = main
[pager]
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX