An explanation of the SVN use of Android studio in Mac

Source: Internet
Author: User

Today tidied up the use of the next SVN in Android Studio (hereinafter referred to as), the system is Mac, I think the Windows online already have a lot of, the following is for Mac version

As the SVN operation and Eclipse still have a lot of different places, if you just transferred from Eclipse, it may take a little time to study, especially in the previous use of SVN on the Team menu content, maybe now you can not find this team option, So now I'm going to go into detail about the use of SVN in as

The general process is to create a new project and then submit the project to an SVN server and then check it out for other classmates, here are the steps:

1, new project, I think it will! Is the structure of the new project.

2, add ignored

Because to commit to SVN, then certainly not all commit, some auto-generated will be ignored, so need to add ignored; we may not know what to ignore before we add it. I went to GitHub for the official Android client reference, such as

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

. gradle
. idea
. IML
Local.properties
Build

So how do you add it? At this time will go to preferences inside, concrete such as

Operation I would like to see the picture is very clear, directly in the Ignored Files option click on the + sign, in the Pop-up dialog box select the second item, and then enter the above included .gradle .idea build three folder directory, then select the first item, find local.properties , then select the third entry
*.imlAfter adding ignored, it shows as follows:

3,share Project (Subversion)

Next it is clear that the project is connected to SVN and executes vcs->import into Version Control->share project (Subversion)
If you do not have the share project (Subversion) option to indicate that your project has been managed with SVN or git, you can clear the SVN information before executing

Click Share Project to pop up the tab and click + to add the SVN address

After adding the address, you can select an address and then share the

After about a few seconds will pop up the following window, note to choose 1.6, choose 1.7 after the students may have an error

Then clicking OK will pop up your SVN account password tab

Continue to click OK, about a few seconds after the project is connected to SVN, note that the project code is not submitted to SVN

, the yellow represents the ignored item, and then click Vcs↑ to pop up the submitted dialog box

To the right to tick auto-update after commit, otherwise you only submit the local no synchronization upload to the remote server, then you have to click the Third Sync button, so in order to ensure one step, please remember to check the auto-update after commit OH

It will take about a minute to commit, depending on your speed, and the success will pop up as

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;

4, check out SVN project

Let's check out the project submitted to SVN in the previous step, go back to the launch screen (close all items), and click on the VCs dropdown's subversion option:

Pop-up after clicking

Select Directory

Setting options

Watch or choose 1.6.

Click OK to eject the checkout

A pop-up box pops up after a successful checkout, then click Yes

Will go into the project, and then arbitrarily modify the next project, you can right-click Subversion->commit file submitted, the subversion here all the features are not introduced!

My blog: http://www.hloong.com/?p=165

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

An explanation of the SVN use of Android studio in Mac

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.