Add configuration commands
This commit is contained in:
@@ -1,7 +1,23 @@
|
|||||||
# Git
|
# Git
|
||||||
|
|
||||||
## Exécuter git depuis un autre répertoire que celui du dépot
|
## Exécuter git depuis un autre répertoire que celui du dépôt
|
||||||
|
|
||||||
```
|
```
|
||||||
git -C <chemin_du_dépot> <commande_git>
|
git -C <chemin_du_dépot> <commande_git>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Commandes pour une configuration de base dans un dépôt:
|
||||||
|
|
||||||
|
```
|
||||||
|
git config user.name ben
|
||||||
|
git config user.email ben@nospam.org
|
||||||
|
git config core.editor vim
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commandes pour une configuration pour tous les dépôt:
|
||||||
|
|
||||||
|
```
|
||||||
|
git config --global user.name ben
|
||||||
|
git config --global user.email ben@nospam.org
|
||||||
|
git config --global core.editor vim
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user