2024-02-18 19:04:34 +01:00
|
|
|
[user]
|
|
|
|
name = exu
|
|
|
|
email = mrc@frm01.net
|
2022-08-29 20:14:15 +02:00
|
|
|
[init]
|
|
|
|
defaultBranch = main
|
2024-02-18 19:04:34 +01:00
|
|
|
# Some popular options to test:
|
|
|
|
# https://jvns.ca/blog/2024/02/16/popular-git-config-options/#merge-conflictstyle-zdiff3
|
|
|
|
#[merge]
|
|
|
|
# conflictstyle = zdiff3
|
2024-03-16 10:24:45 +01:00
|
|
|
[diff]
|
|
|
|
algorithm = histogram
|
2024-02-18 19:04:34 +01:00
|
|
|
#[branch]
|
|
|
|
# sort = -committerdate
|
|
|
|
#[tag]
|
|
|
|
# sort = taggerdate
|
|
|
|
[gitlab]
|
|
|
|
user = exu
|
|
|
|
[github]
|
|
|
|
user = exu
|
2020-08-28 21:48:19 +02:00
|
|
|
[alias]
|
2023-07-12 18:31:39 +02:00
|
|
|
# use like this: git mr [REPO] [MERGE REQUEST]
|
|
|
|
# see https://stackoverflow.com/a/50834005 (GitLab)
|
|
|
|
# see https://gist.github.com/gnarf/5406589 (GitHub, modified to be similar to GitLab)
|
|
|
|
mr = !sh -c 'git fetch -fu $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
|
|
|
|
pr = !sh -c 'git fetch -fu $1 refs/pull/$2/head:pr-$1-$2 && git checkout pr-$1-$2' -
|
2024-04-12 16:42:49 +02:00
|
|
|
# checkout latest tag
|
|
|
|
latest = !sh -c 'git describe --tags $(git rev-list --tags --max-count=1) | xargs git checkout' -
|