Outils pour utilisateurs

Outils du site


git:keep_fork_in_sync

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
git:keep_fork_in_sync [2017/08/30 16:51]
marc dexet créée
git:keep_fork_in_sync [2017/08/30 16:53] (Version actuelle)
marc dexet
Ligne 1: Ligne 1:
 1. Clone your fork: 1. Clone your fork:
  
-    ​git clone git@github.com:​YOUR-USERNAME/​YOUR-FORKED-REPO.git+<​code>​ 
 +  ​git clone git@github.com:​YOUR-USERNAME/​YOUR-FORKED-REPO.git 
 +</​code>​
  
-2. Add remote from original repository in your forked repository: ​+2. Add remote from original repository in your forked repository:
  
-    ​cd into/​cloned/​fork-repo +<​code>​ 
-    git remote add upstream git://​github.com/​ORIGINAL-DEV-USERNAME/​REPO-YOU-FORKED-FROM.git +  ​cd into/​cloned/​fork-repo 
-    git fetch upstream+  git remote add upstream git://​github.com/​ORIGINAL-DEV-USERNAME/​REPO-YOU-FORKED-FROM.git 
 +  git fetch upstream 
 +</​code>​
  
 3. Updating your fork from original repo to keep up with their changes: 3. Updating your fork from original repo to keep up with their changes:
  
-    ​git pull upstream master +<​code>​ 
-    +  ​git pull upstream master 
 +</​code>​ 
 4. Push to gitlab remote 4. Push to gitlab remote
-    + 
-   ​git push +<​code>​ 
-   ​ + git push 
-Source : https://​gist.github.com/​CristinaSolana/​1885435 ​+</​code>​ 
 + 
 +Source : [[https://​gist.github.com/​CristinaSolana/​1885435|https://​gist.github.com/​CristinaSolana/​1885435]] 
 + 
 +{{tag>​git}} 
 + 
git/keep_fork_in_sync.1504104696.txt.gz · Dernière modification: 2017/08/30 16:51 par marc dexet