I've come upon some instances that are difficult to track what the heck happened. We have a 'development' and 'master' branch. New changes get taken from 'master' then merged into 'development' then once good we merge the new branch into 'master'.
Sometime in the last couple weeks a huge set of changes was reversed on development. I don't know how that happened or how that's possible. Anyways, it would be nice if I could go into the history of a file and see the merge that reversed it, but it's showing as if the last merge was from a year ago.
The only real way I can think of this is to literally go through the commit hashes and reset head to them and see where I'm at. But that seems impractical. Any easier way to do this?
OR is there a way to look at a merge in the past and see which files were effected by it? Like when you merge a branch you always see the output in your console of which files were changed at which lines.. but in the git file history much of that may not show up.
Also does anyone know why this may happen? I've seen it happen a few times. Sometimes I catch it when I merge. Like I merge a new branch into another and I know I only changed one file in the last commit but it changes a ton of other files. Master branch is about a year behind on a large set of updates so I'm thinking for some reason when a new branch from master was created and merged into dev it switched all the other files too. Weird though since we always do that and it 99% of the time only changes the changed files. I don't get it!