forked from vEnhance/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
91 lines (82 loc) · 2.44 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
[core]
editor = nvim
excludesFile = ~/dotfiles/gitignore
pager = less -x1,3
[user]
name = Evan Chen
email = evan@evanchen.cc
signingkey = 2911981B5D39118D80D782779474E9565D64C443
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = cyan
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "grep"]
filename = magenta
linenumber = green
match = red bold
[push]
default = current
autoSetupRemote = true
[pull]
rebase = true
[alias]
ls = log -n 16 --pretty=format:"%C(yellow)%h\\ %C(green)[%cr]\\ %C(reset)%s\\ %C(red)%d" --decorate --date=short
lo = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(green)[%cr]\\ %C(red)%d" --decorate --date=short
ll = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(green)[%cr]\\ %C(red)%d" --decorate --date=short --stat
lt = log --pretty=format:"%C(yellow)%h\\ %C(green)[%cd]\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate --date=format:'%d%b %Y %H:%M'
tree = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate --graph
all = ls-tree -r HEAD --name-only
entire = !git log --pretty=format: --name-only --diff-filter=ACR | sort -u
l = ls
find = ls-files
br = branch
cm = commit
co = checkout
force = push --force-with-lease
mkroot = commit --allow-empty -m 'Initial commit'
rb = rebase -i
rba = rebase --abort
rbc = rebase --continue
rw = commit --amend # reword
squash = merge --squash
sub = submodule
spull = submodule update --init --recursive
bis = bisect
dc = checkout --
discard = checkout --
undo = reset --mixed HEAD@{1}
unstage = restore --staged
d = diff
ds = diff --staged # queued changes staged; much shorter
now = diff HEAD origin/main # check comparison to upstream
recent = log --diff-filter=A --oneline --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(green)[%cr]" --name-status # command for recently ADDED files
s = status -s -b
ss = status -s -b
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = http://github.com/
[commit]
gpgSign = true
verbose = true
[diff]
tool = meld
[credential]
helper = /usr/lib/git-core/git-credential-libsecret
# vim: ft=gitconfig