Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- S1---S2---…---S31 staging
- /
- A---B---…---X dev
- P1---P2---P3---P4---P5 production
- git checkout -b temp dev
- git merge production --squash
- git branch -f production
- git checkout -B temp dev
- git merge staging --squash
- git branch -f staging
- S staging, temp
- /
- A---B---…---X dev
- P production
- git checkout -B temp <commit id for A>
- git merge production --squash
- git branch -f production
- git checkout -B temp <commit id for A>
- git merge staging --squash
- git branch -f staging
- git checkout -B temp <commit id for A>
- git merge dev --squash
- git branch -f dev
- git branch -D temp
- git push -f --all
- S' staging
- /
- A---X' dev
- P' production
Add Comment
Please, Sign In to add comment