Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
alicia glenn
3,706 Pointsgithub
How do I download my old code from github? I made a mistake, and when I try to download the zip file and run it I get an error.it get this error: Could not find pg-0.17.0 in any of the sources Run bundle install to install missing gems . and when I run bunlde install I still get the error. Do I need to clone my own code?
3 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsIf you run git reset --hard in the console it should revert to the last commit you made. Or you can as you say also just goto the commit you need and clone it to desktop.
alicia glenn
3,706 PointsI ran git reset --hard and nothing happened, where is the change suppose to occur? And yes when I cloned it to my desktop and tried to run the server and I still get this error: Could not find pg-0.17.0 in any of the sources
Run bundle install to install missing gems.
bundle install doesn't work and I still get the error along with this one:Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
agreatdaytocode
24,757 PointsFrom what I have seen on stack overflow running a bundle update helped a few people with a similar problem.
agreatdaytocode
24,757 Pointsagreatdaytocode
24,757 PointsSorry to ask, but did you unzip the file first?