-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
63 lines (50 loc) · 1.25 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
56
57
58
59
60
61
62
63
[alias]
ci = commit
cp = commit-and-push
cp = checkout
fixyp = commit --fixup
mend = commit --amend
pop = reset HEAD^
fp = fpush
fu = fetch upstream
fo = fetch origin
lg = log --color --graph --pretty=format:'%Cgreen%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ls = log --pretty=format:"%C(yellow)%h\\ %Creset%s%Cblue\\ [%cn]\\%Cred%d" --decorate
ll = ls --numstat
r = rebase
ra = rebase --abort
rc = rebase --continue
rs = rebase --skip
ri = rebase --interactive
st = status -sb
prune-merged = "!git branch --merged | grep dm/ | grep -v "\\*" | xargs -n1 git branch -d"
ignore = "!f() { echo \"$1\" >> .gitignore; }; f"
[init]
defaultBranch = main
[push]
default = current
[pull]
rebase = true
[commit]
gpgsign = true
[rebase]
stat = true
autosquash = true
[color]
ui = auto
[rerere]
enable = true
[core]
editor = nvim
excludesfile = ~/.gitignore_global
[commit]
gpgsign = true
[gpg]
format = ssh
[includeIf "gitdir:~/dev/personal/**"]
path = ~/.config/git/personal
[includeIf "gitdir:~/dev/labs/**"]
path = ~/.config/git/labs
# Local configuration file
[include]
path = ~/.gitconfig_local