Advertisement
Guest User

Untitled

a guest
Mar 8th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. TAG_FROM=0.7.38
  2. TAG_TO=0.7.40
  3. MAIN_BRANCH=master
  4.  
  5. git checkout $MAIN_BRANCH
  6. git reset --hard $TAG_FROM
  7. git reset --mixed $TAG_TO
  8. git commit -a -m "reverting all changes between $TAG_FROM and $TAG_TO"
  9.  
  10. git rebase --strategy recursive -X theirs --onto $MAIN_BRANCH $TAG_FROM $TAG_TO
  11. git checkout -b changes-v$TAG_FROM-v$TAG_TO
  12. git push -u origin changes-v$TAG_FROM-v$TAG_TO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement