IOS xcode remove git using svn

Source: Internet
Author: User

First, why do you want to do this

Since git and SVN have two versioning tools that can't be used at the same time, XCODE5 has chosen git by default when creating a new project, but it's not a choice. When you inadvertently default Git version control, but you want to use SVN version control, there are only two ways: 1, re-new project, 2, delete git, use SVN;

Second, the solution

1. First close Xcode, then go to the terminal interface, go to the appropriate directory, manually delete the. git file or delete the git.2 using the rm-fr. Git command. The submission of external resources, such as. A is ignored and not committed by default, so it needs to be modified. VI ~/.subversion/config Find Global-ignores row, remove *.a, and then save the exit is OK.
#Global-ignores = *.o *.lo *.la *.al. Libs *.so *.so. [0-9*.a *.pyc **.rej *~ #*#. #*. *.swp. Ds_store

Three. svn:working copy ' trunk/src ' locked svn:run ' svn cleanup ' to remove locks (type ' svn help cleanup ' for details)
The exception operation caused the directory not to be unlocked.

Under the. SVN directory
Using the command line "SVN cleanup"

Four. Go to iOS SVN cornerstone Add. A static library file

Many SVN management tools are not uploaded by default on Mac. A file, which is very distressing. From the Internet, the command line can be used to solve this problem.

Open the terminal and the CD enters the folder where the. A file needs to be uploaded. Make sure LS can see. a file

Then use the command, such as: SVN add libzbar.a

A (BIN) libzbar.a appears after use is complete

Add success, with the SVN graphical management tool can be seen, just added the. A file, you can manually upload it now.

IOS xcode remove git using svn

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.