feat(gitconfig): much more config
This commit is contained in:
parent
ea7147a471
commit
a4fe39a907
1 changed files with 39 additions and 7 deletions
46
.gitconfig
46
.gitconfig
|
|
@ -1,6 +1,13 @@
|
||||||
[user]
|
[user]
|
||||||
name = nojhan
|
name = nojhan
|
||||||
email = nojhan@nojhan.net
|
email = nojhan@nojhan.net
|
||||||
|
[includeIf "gitdir:~/travail/**"]
|
||||||
|
path = ~/travail/.gitconfig
|
||||||
|
[credential]
|
||||||
|
helper = store
|
||||||
|
[commit]
|
||||||
|
# Adds -v to commit by default
|
||||||
|
verbose = true
|
||||||
[alias]
|
[alias]
|
||||||
st = status
|
st = status
|
||||||
ci = commit -v
|
ci = commit -v
|
||||||
|
|
@ -22,18 +29,43 @@
|
||||||
ui = auto
|
ui = auto
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
[rebase]
|
# push new tags along with commits being pushed
|
||||||
instructionFormat = (%an <%ae>) %s
|
followtags = true
|
||||||
[credential]
|
|
||||||
helper = store
|
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
|
[rebase]
|
||||||
|
instructionFormat = (%an <%ae>) %s
|
||||||
|
# You commit it with git commit --fixup OLD_COMMIT_ID,
|
||||||
|
# which gives the new commit the commit message fixup! add parsing code
|
||||||
|
# Now, when you run git rebase --autosquash main,
|
||||||
|
# it will automatically combine all the fixup! commits with their targets
|
||||||
|
autosquash = true
|
||||||
[diff "odf"]
|
[diff "odf"]
|
||||||
textconv=odt2txt
|
textconv=odt2txt
|
||||||
[diff]
|
[diff]
|
||||||
algorithm = histogram
|
algorithm = histogram
|
||||||
|
# uses different colours to highlight lines in diffs that have been “moved”
|
||||||
|
colorMoved = default
|
||||||
|
[merge]
|
||||||
|
# Adds a middle section in 3-ways conflict sections.
|
||||||
|
conflictstyle = zdiff3
|
||||||
|
tool = meld
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
[help]
|
||||||
[includeIf "gitdir:~/travail/**"]
|
# run the spelling suggestions automatically, you can set:
|
||||||
path = ~/travail/.gitconfig
|
# - help.autocorrect to 1 (run after 0.1 seconds),
|
||||||
|
# - 10 (run after 1 second),
|
||||||
|
# - immediate (run immediately),
|
||||||
|
# - or prompt (run after prompting)
|
||||||
|
autocorrect = prompt
|
||||||
|
[core]
|
||||||
|
# Pager with syntax highlighting.
|
||||||
|
pager = delta
|
||||||
|
[status]
|
||||||
|
submoduleSummary = true
|
||||||
|
[branch]
|
||||||
|
# makes git branch sort by most recently used branches instead of alphabetical
|
||||||
|
sort = comitterdate
|
||||||
|
[log]
|
||||||
|
date = iso
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue