-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
92 lines (72 loc) · 1.83 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# https://git-scm.com/docs/git-config
[user]
email = 46844683+ALX99@users.noreply.github.com
name = ALX99
[pull]
rebase = merges
[push]
autoSetupRemote = true
[rebase]
autoStash = true
[apply]
whitespace = fix
[status]
# Display submodule rev change summaries in status
submoduleSummary = true
# Recursively traverse untracked directories to display all contents
showUntrackedFiles = all
; [core]
; pager = delta
[diff]
colorMoved = default
submodule = log
; [interactive]
; diffFilter = delta --color-only
; [delta]
; navigate = true # use n and N to move between diff sections
; light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
; line-numbers = true
[alias]
a = add
f = fetch --all
p = pull
s = status -sb
# commits
c = commit
cm = c -m
ca = c --amend --no-edit
cam = c --amend
ch = !source ~/dotfiles/shell/.gitalias && gch $1
cu = reset --mixed HEAD~1
# diff
d = diff
d = diff --stat
dc = diff --cached
# branches
bd = !source ~/dotfiles/shell/.gitalias && gbd $1
bl = branch
bc = checkout -b
bs = !source ~/dotfiles/shell/.gitalias && gbs $1
# stashes
sa = stash push
sp = stash pop
# restore
r = restore
rs = restore --staged
# misc
al = "! git config --get-regexp '^alias\\.' | cut -c7-"
co = checkout
st = status
lg = log --graph --date=relative --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %C(blue)[%an] %C(black)(%ad)%Creset'
rank = shortlog -sn --no-merges
remotes = remote -v
review = push origin HEAD:refs/for/master
# Push over SSH instead of HTTPS
[url "ssh://git@github.com/"]
pushInsteadOf = https://github.com/
[difftool]
prompt = false
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""