In my project I
Once I rollback changes to master
branch to a specific tag I follow the following procedure:
before_rollback
that gets the changes from master: git checkout master # I'll need to use the before_rollback branch to make a diff for branches to re-merge git checkout -b before_rollback git checkout master
git reset --hard ^tag_to_revert^ git push origin --force master
But before_rollback
branch also contains some other changed comming from closed PR's with deleted branches from github. What I want to do is to re-open the branches and manually get the diff of the branched that need re-merge so I can re-merge them back.
In other words I want to somehow get a diff of the merged branches between master
and before_rollback
and re-open them, regardless if they have been deleted or not.
Is there a way to do this?
Here is a possible alternative workflow for this:
main
main
, No --force
anywhere.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.