Reputation: 180
I'm working on my android app, and now is perfectly working. How can I save the whole project so that if I make changes and want to get back to the previous state I can get everything back as it was.
For example: I get my app working and I call such state: version 1.0. To improve my app I modify the various file and get to: version 1.3. Now, I made a mess with version 1.3 and want to get back, how can I get to version 1.0?
Upvotes: 6
Views: 4161
Reputation: 561
Yes, VCS is the way to go but as many might have worries like I did that someone might steal your code from those repositories, the github is a public repository and thus others can access it, to have a private repo you need to pay. So, better use other services like Bitbucket that provides private repo for free.
Upvotes: 1
Reputation: 341
For the same purpose, a system called the Version Control System(VCS) was founded. These help you to keep and maintain versions of your code. Git
, Mercurial
are some VCS. Git
is the most widely used one. It allows more than just maintaining versions. It helps to:
Keep snapshots of code.
See changes across the snapshots(commits)
Make branches and try experimental features.
Automatically merge branches and letting you fix any conflicts.
So I strongly suggest you to learn to use Git. You can find some good tutorials here:
[Udacity course][1]
[Tutorials Point][2]
[Attlassian Git tutorial][3]
Upvotes: 5
Reputation: 798
Use GIT and create branch or tag for your project version. You can check out to any previous version of project where you committed out any change or tagged. Better you check out tutorial like http://www.tutorialspoint.com/git/
Upvotes: 5
Reputation: 98
Version control is the way to go. look up Git. github has awesome tutorials
Upvotes: 3