News

Git : Resynchroniser un fork

| | Racine | 1 Commentaire | 436
Git : Resynchroniser un fork
Salut à tous,

Un billet crado pour historiser les commandes de mon ami Kapouik.

Quand on fork un projet sur Github, pour y apporter une modif et effectuer un Pull Request, et que plusieurs jours après on veut refaire un pull request, il faut synchroniser son repo forké.

Pour cela :

Code BASH :
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
git fetch upstream
git checkout master
git merge upstream/master


Voila