Add a bunch of new git options
This commit is contained in:
parent
5e9b808a2d
commit
e37074b54b
@ -7,18 +7,32 @@
|
|||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
# Some popular options to test:
|
# Some popular options to test:
|
||||||
# https://jvns.ca/blog/2024/02/16/popular-git-config-options/#merge-conflictstyle-zdiff3
|
# https://jvns.ca/blog/2024/02/16/popular-git-config-options/#merge-conflictstyle-zdiff3
|
||||||
#[merge]
|
# https://blog.gitbutler.com/how-git-core-devs-configure-git/
|
||||||
# conflictstyle = zdiff3
|
[merge]
|
||||||
|
conflictstyle = zdiff3 # 3way merge conflict. current change, original, incoming change
|
||||||
[diff]
|
[diff]
|
||||||
algorithm = histogram
|
algorithm = histogram # better handling of code movement
|
||||||
#[branch]
|
colorMoved = plain # different color for moved code
|
||||||
# sort = -committerdate
|
mnemonicPrefix = true # diff prefix i (index), w (working dir) or c (commit) instead of a and b
|
||||||
#[tag]
|
renames = true # better renames detection
|
||||||
# sort = taggerdate
|
[branch]
|
||||||
# [gitlab]
|
sort = -committerdate # sort by date of last commit
|
||||||
# user = exu
|
[tag]
|
||||||
# [github]
|
sort = taggerdate # sort by creation date
|
||||||
# user = exu
|
# sort = version:refname # sorting by version numbers
|
||||||
|
[push]
|
||||||
|
autoSetupRemote = true # automatically set upstream branch
|
||||||
|
followTags = true # always push local tags
|
||||||
|
[pull]
|
||||||
|
rebase = true # auto rebase local commits
|
||||||
|
[fetch]
|
||||||
|
prune = true # remove local leftovers on fetch
|
||||||
|
pruneTags = true # remove local tags on fetch
|
||||||
|
all = true # fetch all
|
||||||
|
[commit]
|
||||||
|
verbose = true # show detailed changes
|
||||||
|
[help]
|
||||||
|
autocorrect = prompt # if I ever need to use the CLI
|
||||||
[alias]
|
[alias]
|
||||||
# use like this: git mr [REPO] [MERGE REQUEST]
|
# use like this: git mr [REPO] [MERGE REQUEST]
|
||||||
# see https://stackoverflow.com/a/50834005 (GitLab)
|
# see https://stackoverflow.com/a/50834005 (GitLab)
|
||||||
|
Loading…
Reference in New Issue
Block a user