User Tools

Site Tools


dev:git-forking-workflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:git-forking-workflow [2014/11/29 17:31] – [Fork] kobedev:git-forking-workflow [2014/11/29 17:32] – [Fork] kobe
Line 25: Line 25:
     url = git@github.com:befair/gasistafelice.git     url = git@github.com:befair/gasistafelice.git
     fetch = +refs/heads/*:refs/remotes/origin/*     fetch = +refs/heads/*:refs/remotes/origin/*
-     
-  $ git checkout master 
  
 Mi posiziono all'interno del master del mio repository in locale. Mi posiziono all'interno del master del mio repository in locale.
  
-  $ git pull upstream master+  $ git checkout master
  
 Effettuo  un merge del mio branch master con quello del repository ufficiale  (upstream -> git@github.com:befair/gasistafelice.git) Effettuo  un merge del mio branch master con quello del repository ufficiale  (upstream -> git@github.com:befair/gasistafelice.git)
  
-  $ git checkout my-dev-branch+  $ git pull upstream master
  
 Mi sposto sul mio branch in locale di sviluppo (in questo caso, my-dev-branch) Mi sposto sul mio branch in locale di sviluppo (in questo caso, my-dev-branch)
  
-  $ git rebase master+  $ git checkout my-dev-branch
  
 Effettuo un rebase (un import) del mio branch (my-dev-branch) con il master, quindi: Effettuo un rebase (un import) del mio branch (my-dev-branch) con il master, quindi:
  - importo le nuove modifiche del master  - importo le nuove modifiche del master
  - riapplico i miei commit piu' recenti dopo quelli importati dal master  - riapplico i miei commit piu' recenti dopo quelli importati dal master
 +
 +  $ git rebase master
    
  In caso di problemi fixare a mano eventuali conflitti, come segnalato (e come si fa normalmente).  In caso di problemi fixare a mano eventuali conflitti, come segnalato (e come si fa normalmente).
dev/git-forking-workflow.txt · Last modified: 2015/09/17 13:08 by kobe