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

iOS Build an Interactive Story App with Swift 2 Navigating Through An Adventure Adding a Show Segue

landon vago-hughes
landon vago-hughes
6,392 Points

Source control doesn't give me any commit or pull, push options

I downloaded the code from teachers notes and opened it in xCode. Then when i click on Source Control no options are available? Is this because I didn't create a git repository on myMac? I went on gitHub and created a repository but because it was a pre-saved file name how do I enable git? Any help would be greatly appreciated :)

2 Answers

Michael Hulet
Michael Hulet
47,913 Points

This would be because the download doesn't come with a git repository. Even if you created one on GitHub, that won't change anything on your local machine, because there needs to be a copy of the repository on your local machine for the Source Control menu to work. If you did create one on GitHub, you can download it and set up Xcode to work with it by copying the link GitHub gives you to clone the repository, then go to Source Control > Check Out... and paste that URL into the field under "Or enter a repository location:" and click Next. If you didn't, you can create one by clicking on Source Control > Create Working Copy...

landon vago-hughes
landon vago-hughes
6,392 Points

Hi thank you for the quick response, I went to the Check out and added the link of the repository however it gives me an error saying 'Make sure the file is in a valid working copy and try again.' and I am not to sure what this means.

Nick Sieber
seal-mask
.a{fill-rule:evenodd;}techdegree
Nick Sieber
iOS Development Techdegree Student 3,121 Points

I had the same problem Landon! :( So, what I finally deducted was that when I saved the Soccer Coordinator playground, I was not saving it in the correct folder: the downloaded Soccer Coordinator project file. Just look closely at which folder you're actually saving your project in and hopefully this solves the problem! :)