-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
51 lines (47 loc) · 1.21 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
[user]
email = [email protected]
name = Asaduzzaman Pavel
[core]
pager = /usr/bin/less
excludesfile = /home/k1ng/.gitignore
editor = nvim
[color]
ui = always
branch = always
diff = always
interactive = always
status = always
grep = always
pager = true
decorate = always
showbranch = always
[pull]
rebase = false
[alias]
a = add
aa = add --all
amend = commit --amend
b = branch
bb = branch -a
bd = branch -d
cherry-pit = "!f() { git rebase -p --onto \"$1\"^ \"$1\"; }; f"
cm = commit -m
co = checkout
d = diff
ec = config --global -e
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
l = log --relative-date --graph --abbrev-commit -10
ll = log --relative-date --graph --abbrev-commit
p = push
remotes = remote -v
s = status -s
sd = d --cached
sh = show
cbranch = "!f() { git switch $(git branch -v | cut -c3- | fzf | cut -f1 -d' '); }; f"
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
[format]
pretty = format:%C(yellow)%h %Cblue%>(12)%ad %Cgreen%<(7)%aN%Cred%d %Creset%s
[pager]
branch = false
[merge]
conflictstyle = diff3