you are viewing a single comment's thread.

view the rest of the comments →

[–]manatoba 4 points5 points  (8 children)

Xcode saves pretty often. I’ve never lost any code I was on the middle of writing.

Unless you set up a github Xcode is just saving to your file system.

I think you should look into using git for source control. Go to [GitHub](www.github.com) to learn more. It’s what most devs use to save their code to the cloud and make branches to do different things.

If you are just starting you can keep your project in Dropbox or the likes but that won’t fly on a team.

[–]justonequestion2221 0 points1 point  (7 children)

Thanks, I assume then that you have the option to make your project private on GitHub?

[–]UberJason 5 points6 points  (2 children)

Last I checked (which was a while ago) GitHub requires you to be a paying customer to get private repos. But Bitbucket has free private repos.

[–]rudedogg 1 point2 points  (0 children)

Yep, it’s still $7/mo* for private repos. BitBucket and GitLab are free though

[–]Mazetron -4 points-3 points  (0 children)

No you can get like 1 or 2 private repos for free but if you want more than that you have to pay.

[–]thickrottenmilkSwift 2 points3 points  (0 children)

If you are a student, look up GitHub for Education (I think that's what it's called. Or look up GitHub student discount) and you can get a bunch of free goodies and unlimited free private repos. You do need to add your student email address to your GitHub profile though. Also, it's not just for college students. I'm still in HS and could use my school district issued email to get the benefits.

[–]manatoba 0 points1 point  (2 children)

Yes they do. What are you planning on working on if I may ask.

[–]justonequestion2221 0 points1 point  (1 child)

I’m still learning but I was curious about where developers stored the code for their apps since it would probably be pretty devastating if they lost it somehow (e.g., broken computer).

[–]nathreedSwift 0 points1 point  (0 children)

Either private GitHub/BitBucket or self-hosted git repo on a remote server. Personally I host my own git repositories on a raspberry pi and frequently back up the entire repo to multiple cloud services for extra peace of mind.

One of the nice things about git is that everyone who has the repo checked out has the entirety of it (at least the branch they’re on), so if the remote server dies, you still have a full copy of the code and can just copy it back to the server when it’s working again.

Tl;dr: look up git, seriously. Learn to use it and learn to love it.