From 87a3eec124283f3cac721053a84c9514b24cffbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Sun, 14 Apr 2024 17:52:22 +0200 Subject: git: add sr.ht support --- dot_config/git/config | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'dot_config/git') diff --git a/dot_config/git/config b/dot_config/git/config index 8817873..0e559a8 100644 --- a/dot_config/git/config +++ b/dot_config/git/config @@ -70,23 +70,40 @@ path = "local.config" # intended workflow: -# own projects: clone with me: +# own projects: clone with me: (github), st: (sr.ht toast), gt: (github toast) # github projects: clone with gh: +# sr.ht projetcts: clone with srht: # potential TODO: clone gh: but push to st: fork ? may not be possible # it would be possible if you could have something like: # [remote "me"] # url = st:* # and the * was somehow implied to be $(basename $origin) + +# me: [url "git@github.com:CosmicToast/"] insteadOf = "me:" + insteadOf = "gt:" + +[url "git@git.sr.ht:~spacetoast/"] + insteadOf = "st:" +# github [url "https://github.com/"] insteadOf = "gh:" [url "git@github.com:"] - pushInsteadOf = "https://github.com" + pushInsteadOf = "https://github.com/" pushInsteadOf = "gh:" +# sr.ht +[url "https://git.sr.ht/"] + insteadOf = "srht:" + +[url "git@git.sr.ht:"] + pushInsteadOf = "https://git.sr.ht/" + pushInsteadOf = "srht:" + +# filters [filter "lfs"] smudge = git-lfs smudge -- %f process = git-lfs filter-process -- cgit v1.2.3