Files
knowledge/git/config.md
2025-11-19 19:11:27 +01:00

50 lines
642 B
Markdown

### 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 $HOME/.cred/git_password.txt
```
Empty:
```
#!/bin/bash
cat
```
# The file that the script calls needs to have the following content:
```
username=username
password=password
```
Example
```
username=Max
password=123
```
Empty:
```
username=
password=
```