-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
48 lines (48 loc) · 1.64 KB
/
dot_gitconfig.tmpl
File metadata and controls
48 lines (48 loc) · 1.64 KB
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
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
theme = Visual Studio Dark+
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[init]
defaultbranch = main
[user]
name = {{ .name }}
email = {{ .email }}
signingkey = {{ .gpgkey }}!
[rebase]
stat = true
autoSquash = true
autoStash = true
[core]
autocrlf = false
[commit]
gpgsign = true
[gpg]
program = {{ joinPath .chezmoi.homeDir "scoop/apps/gpg/current/bin/gpg.exe" | replace "\\" "/" | quote }}
[alias]
unstage = reset HEAD
unst = reset HEAD
stage = add
st = add
unci = reset --soft HEAD^
undo-commit = reset --soft HEAD^
ci = commit
st = status
co = checkout
br = branch
pick = cherry-pick
last = log -1 HEAD
ls = log --abbrev-commit --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat # List commits showing changed files
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short # List oneline commits showing dates
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative # List oneline commits showing relative dates
le = log --oneline --decorate #Default look for short git log
logtree = "log --graph --oneline --decorate --all" # same as above, but with graph
filelog = log -u # See all the commits related to a file, with the diff of the changes with git log -u