The Android Studio's SVN usage in Mac is detailed

Source: Internet
Author: User
Tags svn

Today sorted out the use of SVN in Android Studio (hereinafter referred to as), the system is Mac, I think there are a lot of Windows online, the following is for the Mac version:

As the SVN operation and Eclipse still have a lot of different places, and if you just turn around from Eclipse, it may take a little time to study, especially if you used to use the Team menu on SVN, and you may not be able to find it now. So now I'm going to go over the details. SVN in as tool/raw material Android Studio Mac New Project 1

New project, I think it will. The following figure is the structure end of the new project add ignored 1

Because to submit to SVN, then certainly can not all commit, some automatically generated will be ignored, so need to add ignored; we may not know what to do before we add it. I went to GitHub's official Android client reference, as shown in Figure 2

Now look at the GitHub client and our project comparisons, we can find out what we need to ignore the file probably contains the following:

. gradle.idea.imllocal.propertiesbuild

So how to add it. This is the time to go to preferences inside, figure 3 as follows

Operation I want to see the picture is very clear, directly in the ignored Files option to click the + number, in the pop-up dialog box to select the second item, and then enter the above included. Gradle. Idea builds three folder directories, then select the first item to find Local.properties , then select the third entry *.IML add ignored to display the following figure: End Share Project (Subversion) 1

Next, it's obvious that the project is connected to SVN, executing vcs->import into Version control->share project (Subversion) without Share project ( Subversion), which means that your project has been managed with SVN or git, then you can clean up the SVN information and then execute the 2

Click Share Project to eject the tab and click + to add SVN address 3

Once you add an address, you can select an address and then share 4.

Probably after a few seconds will pop up the following window, pay attention to choose 1.6, after the election of 1.7 may have a homecoming error 5

Then click OK to eject your SVN account password tab 6

Continue clicking OK, about a few seconds later the project is connected to SVN, note that at this time the project code did not submit to SVN 7

As shown in the illustration, the yellow item is omitted and then clicked Vcs↑ pops up the submitted dialog box

To the right to tick auto-update after commit, otherwise you only submit the local did not sync upload to the remote server, then also have to click the next figure the Third Sync button, so in order to ensure one-step, please remember to check auto-update after commit Oh 8

It will take about a minute to commit, depending on your speed, which will pop up as follows Figure 9

Click Commit or Cancel to close the window, or click Review you can view the remote server project, and now you go to see if SVN has the project already;

End Check out SVN project

Let's check out the project that was submitted to SVN in the previous step, return to the launch interface (close all items), and click the Subversion option from the VCs dropdown:

Click and then Eject

Select a directory

Setting options

Pay attention, or choose 1.6.

Click OK and eject is checking out

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.