Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


How do I go back to previous versions of an app?

In the build a weather app course, we created a simple view for the weather. Then we converted the app to include table views and switched up the UI drastically. Is there any way for me to go back to the initial iteration or should I have "save as"-ed before making all these changes?

1 Answer

Nathan Tallack
Nathan Tallack
22,158 Points

In short, not likely as you are unlikely to have enabled and correctly used version control in your project.


One great thing about Xcode is it has built-in integration to Git. Git is a great version control system that allows you to track version changes as you add features (amongst many other things).

There are some courses here on treehouse that teach you the basics of Git. I recommend you take an hour or two to run through them, or at the very least one of the short workshops, so that you can understand how Git works.

Once you have done that you can make sure that each new project you setup in Xcode uses a Git repository so that you can always have version control in your development.

Thanks Nathan! I feared this was the answer. An easy lesson learned though as I'll be sure to properly version control in the future..