# Installer git

[Git](https://git-scm.com/) est un outil de *versioning* très puissant et répandu (voir [Utiliser git](https://wiki.etud.insa-toulouse.fr/books/tutos/page/utiliser-git)).

Si tu a rencontres un problème pendant ton installation ou si tu as une question, n'hésite pas à venir nous poser une question sur le [discord du Club Info](https://discord.com/invite/W8MeTec) !

#### Linux

Rien de plus facile. Installe la *Command Line Interface* (CLI) en suivant [ces instructions](https://git-scm.com/download/linux) (dans le terminal).

#### Windows

Utilise l'[outil d'installation Windows](https://git-scm.com/download/win).

#### Mac

[Plusieurs méthodes](https://git-scm.com/download/mac) s'offrent à toi. On utilise ici [Homebrew](https://brew.sh/).

Afin d'installer *Homebrew*, ouvre un terminal et utilise la commande suivante (copier-coller avec `Cmd+Shift+V`):

```shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

(toujours faire confiance aux commandes trouvées sur un wiki étudiant <sub>/s</sub>)

L'installation est interactive, c'est à dire qu'elle te demande avant d'agir.

Si l'installation s'est correctement déroulée, installe `git` avec :

```shell
brew install git
```

Normalement la version devrait s'afficher en tapant :

```
git --version
```

Félicitations ! Tu as installé `git`! Tu peux continuer ton périple et apprendre à l'[utiliser](https://wiki.etud.insa-toulouse.fr/books/tutos/page/utiliser-git) !