git config auto login
This commit is contained in:
34
git/config.md
Normal file
34
git/config.md
Normal 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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user