I had a commit with a pull-request already merged in the development branch. Then after a weak someone made a mistake and merged the master branch back to the development and somehow, i don't know how, but my already merged commit is now gone from the development branch.
I can track down the commits to dev branch after my commit, and I could track down where it went wrong, but the PR for the commit which broke/erased my merged commit doesn't show my files as if it would be changed by that commit.
Long story short, some code got reverted to an old state by a commit and there are no signs of it, how can I re-apply a commit to the dev branch?
You just need to find the commit sha-1 value that you made the changes, and then cherry-pick this commit to your development branch:
git checkout development
git cherry-pick <commit you found>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With