I was working on the master
branch in our git repo and merged it to our secondary
branch.
Another developer who's very new to git claims he merged his changes into secondary
from another branch.
When I pulled the latest changes from the secondary
branch I see that all of the files and changes I committed with the merge from master
are all gone now but all of his changes are there after his supposed merge. I can look back at the commits and see that his particular commit did, in fact, remove all of my changes.
He has no idea how he did this and I'm afraid to merge anything from secondary
to master
for fear all my changes will be lost.
What is the most likely cause and how can it be corrected so that both our changes are successfully merged instead?