📚 Cheatsheet

Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.

Snippets 7

Retour
Ajouter un dépôt distant
Facile
git remote add origin https://github.com/utilisateur/repo.git
Lister les dépôts distants
Facile
git remote -v
Pousser les modifications vers un dépôt distant
Facile
git push origin main
Pousser une nouvelle branche vers le distant
Intermédiaire
git push -u origin nom-de-la-branche
Récupérer et fusionner les modifications distantes
Facile
git pull origin main
Récupérer les modifications d'un dépôt distant
Facile
git fetch origin
Supprimer une branche distante
Intermédiaire
git push origin --delete nom-de-la-branche