From ac75f42cfbb6f0d39f90d46e12d165992666b10a Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Thu, 4 Jul 2024 21:34:33 +0100 Subject: [PATCH] chore: add github git auth helper Adds the auth helper to the config. This is used mainly for sapling so we can push and pull to git repos. I need to run this after each time I configure the system because this file is a template not a symlink This was originally added with the `gh` cli tool running the following command: ```bash gh auth setup-git ``` --- site-modules/core/templates/gitconfig.liquid | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site-modules/core/templates/gitconfig.liquid b/site-modules/core/templates/gitconfig.liquid index 8e36e5e..30be0e1 100644 --- a/site-modules/core/templates/gitconfig.liquid +++ b/site-modules/core/templates/gitconfig.liquid @@ -40,3 +40,9 @@ file-added-label = "added:" file-renamed-label = "renamed:" +[credential "https://github.com"] + helper = + helper = !/usr/bin/gh auth git-credential +[credential "https://gist.github.com"] + helper = + helper = !/usr/bin/gh auth git-credential