Travailler avec plusieurs remotes
TODO: Ajouter une illustration
- Forker le repo github: Faire les manipulations sous github!
- git remote add
[email protected]/ : Référence un nouveau répertoire distant (repo)/git-workshop-example - git fetch
: Rapatrie les information du repo distant - git push
- git push
-1.0 - git remote: visualiser les remotes
- git remote -v: afficher les urls fetch/push utilisé pour chaque nom de repo
- git branch: affiche uniquement les branche du repo courant
- git branch -a: affiche également les branches des repos distants
- git branch -a -v: affiche le commit pointé par la branche
- git branch -a -vv: ajoute l'upstream de la branche
- git branch --set-upstream-to=
/ : définit l'upstream de votre branche.