git config auto login

This commit is contained in:
Hannes
2025-11-19 19:07:03 +01:00
parent 1ad784ab1b
commit c3fa8d316b

34
git/config.md Normal file
View File

@@ -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
```