---
title: "GIT : Comment faire un checkout d'une branche distante ?"
canonical: "https://blog.kaptus.net/space/BKAP/blog/167051306/GIT%20%3A%20Comment%20faire%20un%20checkout%20d'une%20branche%20distante%20%3F"
format: markdown
---
## Problème

Comment faire un checkout d'une branche GIT dans un dépôt distant ?

## Solution

<span style="color: #333333">Ligne de commande pour faire le checkout d'une branche distante :</span>

```shell
git checkout --track origin/<branch name>
```

<span style="color: #333333">Par exemple, pour la branche "</span><span style="color: #333333">**feature/EW4-32-sms-anniversaire**</span><span style="color: #333333">" la ligne de commande :</span>

```shell
git checkout --track origin/feature/EW4-32-sms-anniversaire
```

Pour faire un pull de la branche :

```shell
git pull origin feature/EW4-32-sms-anniversaire
```

Pour faire une push de la branche :

```shell
git push -u origin HEAD:feature/EW4-32-sms-anniversaire
```

## Articles connexes



> Macro (contentbylabel)