Comment Commit Often (Score 2) 765
I think the real question is - why was he working with a local repository / local changes for three months? You commit often so this does not happen.
For God's sake, stop researching for a while and begin to think!