I have a long running PR which was merged to main
branch. However, I needed to create a tag for the main branch before the PR got merged for any future hot fixes!
Now that PR got merged (with merge strategy), how do I reach a point back in the history of main
branch where I can create a tag which includes latest of the main
branch excluding all the commits from that specific PR? Note that, the PR itself was updated with changes from main
couple of times.
Is it even possible?
git tag -a <your-tag> <commit-hash-before-merge