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
Paul M
16,370 PointsCan you pull different versions of the same branch in Xcode?
In the video, he pulled from the master branch's latest version. But can't you pull other versions from that branch and how?
Joshua Hardy
17,317 PointsThe instructor did say that you could pull from other versions. Unfortunately I cannot tell you how. I am just getting introduced to GIT by watching these videos.
A 'work around' would be to go to Source Control -> History. You will see a list of all of the commits. You can click on a commit, then copy the code.
Joshua Hardy
17,317 PointsTo get to previous versions go to View -> Version Editor -> Show Comparison View. You can compare different versions by clicking on the clock icon (on the bottom between the two versions), or the two menus on the left and right of said clock.
When thee are changes between the codes, you will have an icon that gives you options to change from one version to another.
And you aways have copy & paste.
Stephen Emery
14,384 PointsStephen Emery
14,384 PointsFrom my understanding, you would want to pull the branch. Then you would use 'git checkout [Your commit id]'. Commit ids are found with 'git log' and look like this: 54b11d42e12dc6e9f070a8b5095a4492216d5320.