git checkout master
git fetch --all
-----reset origin master to before ticket ----
----cherry pick the commits which are in front of the origin revered changes ----
git push -f origin master
git checkout staging
git pull --rebase origin staging
git rebase master
git push -f origin staging