Guest User

Untitled

a guest
Jan 4th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. S1---S2---…---S31 staging
  2. /
  3. A---B---…---X dev
  4.  
  5. P1---P2---P3---P4---P5 production
  6.  
  7. git checkout -b temp dev
  8. git merge production --squash
  9. git branch -f production
  10. git checkout -B temp dev
  11. git merge staging --squash
  12. git branch -f staging
  13.  
  14. S staging, temp
  15. /
  16. A---B---…---X dev
  17.  
  18. P production
  19.  
  20. git checkout -B temp <commit id for A>
  21. git merge production --squash
  22. git branch -f production
  23. git checkout -B temp <commit id for A>
  24. git merge staging --squash
  25. git branch -f staging
  26. git checkout -B temp <commit id for A>
  27. git merge dev --squash
  28. git branch -f dev
  29. git branch -D temp
  30. git push -f --all
  31.  
  32. S' staging
  33. /
  34. A---X' dev
  35.  
  36. P' production
Add Comment
Please, Sign In to add comment