Ran into a strange issue with git.
A dev's commit to a project disappeared a day later (we know the that the commit occurred from the Jenkins build email). The commit was missing from the dev's checkout (we think a 'git pull' may have overwritten the update he originally made. He ended up recoding the change and committing it again.
A normal 'git log' wouldn't show the original commit. If I did 'git log full-history', I can see the missing commit.
I can run 'git show' to see the diffs made in the first and second commits of the change.
Some Google searches bring up the possibility that someone reverted the commit in a merge. I've looked at merges in the time period and I don't see any merges that include the affected file.
Anyone have any idea what might have happened? I know that you can rewrite history with 'git rebase', but in situations where a dev abused rebase, you get a conflict message the next time you do a fetch/pull. I never got a error from git pulls in the past 2 days and as far as I know none of the other devs got one either.
A dev's commit to a project disappeared a day later (we know the that the commit occurred from the Jenkins build email). The commit was missing from the dev's checkout (we think a 'git pull' may have overwritten the update he originally made. He ended up recoding the change and committing it again.
A normal 'git log' wouldn't show the original commit. If I did 'git log full-history', I can see the missing commit.
I can run 'git show' to see the diffs made in the first and second commits of the change.
Some Google searches bring up the possibility that someone reverted the commit in a merge. I've looked at merges in the time period and I don't see any merges that include the affected file.
Anyone have any idea what might have happened? I know that you can rewrite history with 'git rebase', but in situations where a dev abused rebase, you get a conflict message the next time you do a fetch/pull. I never got a error from git pulls in the past 2 days and as far as I know none of the other devs got one either.