Skip to content

Instantly share code, notes, and snippets.

@ElRochito
Created March 18, 2016 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElRochito/d7396ee3388f088c798b to your computer and use it in GitHub Desktop.
Save ElRochito/d7396ee3388f088c798b to your computer and use it in GitHub Desktop.
Update a fork repository
## aller sur votre branche locale
git checkout your_branch
## ajouter un point d'entrée sur le repo initial
git remote add upstream <initial_repo.git>
## récupérer les données depuis le repo initial
git fetch upstream
## mettre à jour les données depuis le repo initial
git merge origin/upstream
## mettre à jour votre branche distante
git push origin <your_branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment