Android Studio: save the project version as a backup

I am working on my Android application and now it works great. How can I save the entire project so that if I make changes and want to return to the previous state, I can return everything as it was.

For example: I am working on my application, and I call this state: version 1.0. To improve my application, I modify various files and get to version 1.3. Now I made a mess with version 1.3 and want to return, how can I get to version 1.0?

+5
source share
4 answers

For the same purpose, a system was created called Version Control System (VCS) . This will help you maintain and maintain versions of your code. Git , Mercurial are some VCS. Git is the most widely used. This allows you to not only support versions. It helps:

  • Keep snapshots of the code.

  • See changes in snapshots (commits)

  • Create branches and try out experimental features.

  • Automatically merge branches and resolve conflicts.

Therefore, I highly recommend that you learn how to use Git. Here you can find some good tutorials:

 [Udacity course][1] [Tutorials Point][2] [Attlassian Git tutorial][3] 
+3
source

Use GIT and create a branch or tag for your version of the project. You can familiarize yourself with any previous version of the project where you made any changes or marked tags. You better look at the tutorial, for example http://www.tutorialspoint.com/git/

+5
source

Version control is the way to go. look at git . github has awesome tutorials

+3
source

Yes, VCS is the way to go, but many may worry that someone might steal your code from these repositories, github is a public repository, and therefore others may access it in order to have a private repo that you need to pay. Therefore, it is better to use other services, such as Bitbucket, which provide a private repo for free.

0
source

Source: https://habr.com/ru/post/1258745/


All Articles