... | ... | @@ -7,18 +7,21 @@ Here are listes some usefull tools to know for dev. |
|
|
#### Relative config files
|
|
|
|
|
|
Since Git 2.13, it is possible to define config files for directories.
|
|
|
|
|
|
Example: the file `~/dev/dbnomics` define user email for all dbnomics repositories:
|
|
|
|
|
|
* in `~/.gitconfig`:
|
|
|
```ini
|
|
|
[includeIf "gitdir:~/dev/dbnomics/"]
|
|
|
path = ~/dev/dbnomics/gitconfig
|
|
|
```
|
|
|
|
|
|
```ini
|
|
|
[includeIf "gitdir:~/dev/dbnomics/"]
|
|
|
path = ~/dev/dbnomics/gitconfig
|
|
|
```
|
|
|
|
|
|
* in `~/dev/dbnomics/gitconfig`:
|
|
|
```ini
|
|
|
[user]
|
|
|
email = jc.dus@cepremap.org
|
|
|
```
|
|
|
```ini
|
|
|
[user]
|
|
|
email = jc.dus@cepremap.org
|
|
|
```
|
|
|
|
|
|
##### Multiple config files (one in the subtree of the other)
|
|
|
|
... | ... | |