0

Im simply trying to download a prior commit because a gem corrupted my local files. I've tried the suggestions outlined in the answer below but get the following error after cloning the repository and checkingout into the commit: 'You are not currently on a branch, so I cant use any branch..merge' in your configuration file.'

How do I download a specific git commit from a repository?

Community
  • 1
  • 1
John C
  • 362
  • 1
  • 3
  • 13
  • Want to understand what you mean by 'download' a certain commit (lets say commit ABC) - do you have a repository where you want to wipe out your local changes (if any) and point your local branch to ABC? Or are you planning on cloning, changing your local copy to ABC, taking some file, and deleting the repository? – Roy Truelove May 11 '12 at 20:34

1 Answers1

0

I didnt realize that I could manually download a particular commit by clicking the download as zip button once inside the commit code section. I incorrectly assumed that this button only allowed one to download the most recent commit.

John C
  • 362
  • 1
  • 3
  • 13