From c3fa8d316bf46f695b42dc9d21aa6a797020d84c Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 19 Nov 2025 19:07:03 +0100 Subject: [PATCH] git config auto login --- git/config.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 git/config.md diff --git a/git/config.md b/git/config.md new file mode 100644 index 0000000..e06c585 --- /dev/null +++ b/git/config.md @@ -0,0 +1,34 @@ +### Notes about the ```config``` file in the ```.git``` directory + +### Auto Password: +# Add the lines to the : +``` +[credential] + helper = !/path/to/script.sh +``` +Example +``` +[credential] + helper = !$HOME/.bin/git_password_helper.sh +``` +Empty: +``` +#!/bin/bash +cat +``` + +# In the script have the following lines: +``` +#!/bin/bash +cat /path/to/password/file +``` +Example +``` +#!/bin/bash +cat /path/to/password/file +``` +Empty: +``` +#!/bin/bash +cat +``` \ No newline at end of file