... | ... | @@ -11,7 +11,7 @@ La commande `git task` permet de créer une nouvelle branche à jour avec `main` |
|
|
Pour pouvoir utiliser cette commande, ouvrez votre terminal CMD avec Laragon et entrez la commande suivante :
|
|
|
|
|
|
```bash
|
|
|
git config --global alias.task "!f() { if [ -z $1 ] then; echo \"Erreur : nom de la branche manquante\"; exit 1; fi; git fetch; git switch --no-track -c $1 origin/main; }; f"
|
|
|
git config --global alias.task "!f() { if [ -z $1 ]; then echo \"Erreur : nom de la branche manquante\"; exit 1; fi; git fetch; git switch --no-track -c $1 origin/main; }; f"
|
|
|
```
|
|
|
|
|
|
**Utilisation**
|
... | ... | |