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 trialSam Hayward
11,673 PointsGithub / Github for Windows. Play with previous version
Hey, I'm using Github for Windows at the moment. My code is doing some weird things so I just want to have a temporary folder containing one of the previous versions of my project. I'm sure it's very simple but it seems kinda confusing. How do I go about it?
Any help much appreciated. Cheers =)
1 Answer
Andrew McCormick
17,730 PointsPart of the beauty of using version control like Git is that you can switch between versions of your code without creating temp folders or anything else. Typically if I'm at a point where my code is whacky and I just want a fresh start without loosing what I'm working on, then I just create a new branch, throw the whacked out stuff to that branch and then revert the branch I was working on back to a commit that I know was working.
As to not avoid your question: If you really need to create a temp folder then you are going to just need to clone your project to that folder. Simply create a new folder and clone your repository into that folder.
Sam Hayward
11,673 PointsSam Hayward
11,673 PointsThanks for this =)