I asked a similar question before, but it was answered inadequately so I thought I would ask again here but providing more information. I need to get different and older versions of a git repository and I'm having trouble with that. What I've tried is
git checkout master~X 
git archive --format zip --output /full/path/to/zipfile.zip master 
git checkout master 
git checkout master~Y 
git archive --format zip --output /full/path/toDifferent/zipfile.zip master 
git checkout master 
After unzipping both, they end up being exactly the same. I can't figure out why or how to fix it.
 
     
     
    