summaryrefslogtreecommitdiff
path: root/dot_config/git
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-04-14 17:52:22 +0200
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-04-14 17:52:22 +0200
commit87a3eec124283f3cac721053a84c9514b24cffbb (patch)
treef2b38bdd28af9016214f224819ca6a29414a7285 /dot_config/git
parentnvim: add markdown quote ftplugin (diff)
git: add sr.ht support
Diffstat (limited to 'dot_config/git')
-rw-r--r--dot_config/git/config21
1 files changed, 19 insertions, 2 deletions
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