-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
70 lines (70 loc) · 1.87 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
[include]
# Include [user] section from .gituser
# name = My name
# email = My email
# signingkey = ssh-ed25519 AA....
path = ~/.gituser
[color]
ui = true
[core]
excludesfile = $HOME/.gitignore
autocrlf = input
editor = nvim -f
[pull]
ff = no
[merge]
ff = no
conflictstyle = diff3
tool = kdiff3
prompt = false
keepBackup = false
[rebase]
instructionFormat = (%an) %s
autoStash = true
[difftool]
tool = kdiff3
prompt = false
[alias]
# Editing and adding conflicted files: when we get many merge conflicts
# and want to quickly solve them using an editor, then add the files.
add-unmerged = !"f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
br = branch
cd = log --oneline --left-right --no-merges
ci = commit -s
co = checkout
brcmp = show-branch
edit-unmerged = !"f() { git ls-files --unmerged | cut -f2 | sort -u ; }; `git var GIT_EDITOR` `f`"
firstcommit = log --diff-filter=A
graph = log --graph --stat --pretty=oneline --abbrev-commit
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen %ai | %ar | %C(bold blue)<%an>%Creset' --abbrev-commit
prune = fetch --prune
publish = !"git push --set-upstream origin $(git branch-name)"
rmremotebranch = push origin --delete
st = status
sup = submodule foreach git pull origin master
thisbranch = log --color --date=short --pretty=format:'%h %ad %ae %s' --first-parent --no-merges
undo = reset --soft HEAD^
[push]
default = simple
followTags = true
[status]
showUntrackedFiles = all
[pull]
ff = only
[init]
defaultBranch = main
[commit]
gpgsign = true
verbose = true
[gpg]
format = ssh
[gpg "ssh"]
# This file should be in format:
# [email protected] ssh-ed25519 AA...
# per line.
allowedSignersFile = /home/weezel/.ssh/allowed_signers
[fetch]
prune = true
[trim]
bases = main,master