-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
60 lines (46 loc) · 1.67 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
[alias]
pull = pull --recurse-submodules=on-demand
spull = pull --recurse-submodules
pusho ="!f(){ git push --set-upstream origin `git rev-parse --abbrev-ref HEAD`;}; f"
d = diff --word-diff=color --patience --minimal
df = diff --ignore-all-space --patience --minimal
dff = diff --name-status
slog = "!f(){ git log --oneline -${1-5};}; f"
last = log -1 --name-status
cm = commit
ca = commit --amend --no-edit
co = checkout
cob = checkout -b
cop = "!f(){ git checkout ${1-develop} && git pull;}; f"
cops = "!f(){ git checkout ${1-develop} && git pull --recurse-submodules;}; f"
st = status -s
lsbranch = branch --sort=-committerdate
flush = "!f(){ git commit -am 'Trashed Awaaaaayyyyyy' --no-post-rewrite --no-verify && git reset HEAD~ --hard;}; f"
mt = mergetool
graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(auto)%h - %d %s - %an%C(italic green)(%ar)%C(reset)' --all
rbc = rebase --continue
patch = add -p
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop\\|main' | xargs -n 1 -r git branch -d"
subup = submodule update --init --recursive
[core]
editor = nvim
pager = less -FRSX
autocrlf = false
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[mergetool]
keepBackup = false
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[rerere]
enabled = true
[include]
path = ~/.gitspecificconfig
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential