I had a set of changes in the master
branch, then I had to roll it back to a previous tag from production and do a hotfix since I didn't want the set of changes to go into production yet. So what I did was, I branched out backup
branch from the master
to keep the set of changes in backup
branch and then rolled back into the previous tag. Used the following set of commands :
git checkout 1.0.1
git diff master > ~/diff.patch
git checkout master
cat ~/diff.patch | git apply
git commit -am 'Rolled back to version 1.0.1'
git push origin master
But now when I want to merge backup
back to master
since I intend to push the changes into Production. But im getting Already upto date
message when I try to merge.
I do have the commit shas, but since theres a lot of commits to be done I want to avoid cherry picking them. Whats the best and safest way to merge the changes back to master
?