tyrion

rebase?

Dec 2nd, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1.  
  2. upstream:
  3.  
  4. A -- B -- C | develop
  5.  
  6. I fork upstream and make a new branch (patch)
  7. P1 | patch
  8. /
  9. C | develop
  10.  
  11. I then submit a pull request.
  12. Since upstream won't merge my PR quickly, I merge my patch branch on the local develop branch to start using my work.
  13. P1 | patch
  14. / \
  15. C -- P2 | develop
  16.  
  17. Then upstream does some changes to develop:
  18.  
  19. A -- B -- C -- D -- E
  20.  
  21. I do "git fetch upstream", now I have:
  22. P1 | patch
  23. / \
  24. A -- B -- C -- P2 | develop
  25. \
  26. D -- E | upstream/develop
  27.  
  28. And I want:
  29. P1 | patch
  30. / \
  31. A -- B -- C -- D -- E -- P2 | develop
Advertisement
Add Comment
Please, Sign In to add comment