I recently came across a situation where I merged changes from a function branch into my main branch and production branch. Then I needed to remove the changes from my production branch, so I used git revert . Now I need to merge these changes back into the production branch, but if I run git merge sha1, I get the message:
Already up-to-date
Can anyone help me with this?
UPDATE Thus, I ended up creating a branch of my production branch, applying diff from the files that I returned to this branch, and then changed this change to production. I don't like it, but it worked. I would still be interested to hear if there is a way to use the same sha1.
source share