summary refs log tree commit diff
path: root/config/git
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-04 07:28:15 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-04 07:37:08 -0700
commita0a2d2c55bf958c4d756db0123187db41a708cd0 (patch)
treeb0cd92cb92f62154cbd235eab1392324b005121d /config/git
parentemacs: add encrypted authinfo resource file (diff)
downloademacs.d-a0a2d2c55bf958c4d756db0123187db41a708cd0.tar.gz
git: configure forge properly
I'm going to deprecate the SSH endpoint for gitea, and use HTTPS instead
for accessing the repositories.

For this, I need to configure properly the credential part for the
different forges (github/gitea for now), and update the URL in the forge
configuration for emacs.
Diffstat (limited to 'config/git')
-rw-r--r--config/git/config7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/git/config b/config/git/config
index 1001b1a..3b3a83b 100644
--- a/config/git/config
+++ b/config/git/config
@@ -20,3 +20,10 @@
 
 [init]
 	defaultBranch = main
+
+[credential "https://github.com"]
+	username = fcuny
+
+[credential "https://git.fcuny.net"]
+	username = fcuny
+	helper = "!echo -n 'password='; pass git/git.fcuny.net"