简体   繁体   中英

Configuration of Subversion in Xcode

I want to configure SVN on my computer. For that how would I create a repository? How to give all the paths needed? I am using Mac os 10.7.3 Lion and Xcode 4.2.

To setup your Subversion repository in XCode 4, go to File → Source Control → Manage Repositories. Once there, you will see an option to add a repository: 在此处输入图片说明

After selecting Add Repository option, you will need to enter your Subversion repository URL and the name you wish to add to your repository:

在此处输入图片说明

Click next, and on next step you should see an option to setup paths to your folders in your svn repository. There are three folders which are usually created by default when you use svn, and they are called /trunk, /tags, /branches. In case you don't have this folders, you can skip this step, it's optional.

在此处输入图片说明

Now you should see in XCode organizer your repository in the sidebar. What we would like to do is add one of our projects to Subversion so we can use version control for the project. We would like to add the project to /trunk folder of our repository. In order to do this, click on the /trunk folder, and then click on the import button.

在此处输入图片说明

When you click import, select the folder of files which you would like to import. Then you will be prompted to enter a commit message. After this, click refresh, and you should see the new files added to your repository.

在此处输入图片说明

Now your project is under version control, and you should be able to see it in your Beanstalk account, in your repository. All you need to do now is checkout the files to a location of your preference, and open the project from this location.

When you open the project, you will see flags next to all files you modify, add or delete and you will see an option to commit the files.

在此处输入图片说明 May this Helping to you

Happy Coding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM