Thanks for looking. I have no doubt I probably used the wrong terminology in my question so let me just explain the problem:
- Developer A checks code into GIT.
- Later, Developer B checks code into GIT and somehow overwrite's Developer A's code with old class files that Developer B has also edited. Possibly, Developer B didn't
pull
beforepush
ing. - Developer A has new work to check in, commits, pulls, pushes. GIT says it was a "success" (no merge issues flagged)
- Developer A goes back to his code which now won't build because suddenly work I did with that first check in is now missing.
So, that is my issue. I used this SO post to reset
my instance of the code to the last successful commit that I made (Step 3 above) and that worked great. So now I can build and all of my work is in tact again.
The Problem
While my local copy of the code now looks great again, I can't push
it to GIT without first doing a pull
of what is already in the repo. Unfortunately, when I do a pull
, all of my work is overwritten and it doesn't give me the opportunity to merge.
Any advice?