Use of Smart svn

Source: Internet
Author: User

The recent project uses SVN, which has played a very good role in managing the code! However, for a lot of preliminary use, still very not easy!

The company is using a smart SVN client. Smart SVN This tool overall is pretty good! In the code to submit and get tangled up a whole son, tangled up, just fine. Nonsense don't say, action! one, get (pull) code from the server Project------>check out



Second, submit the code to the serverWith the above operation, in the directory specified locally, there is a code file downloaded from the server. Submitting the code is relatively straightforward. 1. Right-click on the code you want to submit and do the following:

2. Select the folder you want to manipulate and use the shortcut button:

If you are the one who operates on the code, that generally does not conflict. If more than one person is working on a project at the same time, conflict prevention is a must. This can be done in general: 1. From the server update to the latest code to local. 2. Modify the local code (working ing ... )。 3. Before submitting the code, update it once (because the person may have already submitted the code, to avoid a local version too low). 4.Commit own code, to the server. third, frequently asked questions 1.Smart SVN cannot upload *.a file. By default, the SVN config file on Mac is not allowed to upload. A files, which need to be configured separately. When uploading. A files using smart svn, you can view them and re-upload them separately. this way, you can see the files that failed to upload.  Select the. a file that you want to upload, and click:

Of course, you can set the configuration file on the computer about SVN. To modify, let smart SVN allow uploading. a files. 2. Modify the SVN configuration file on your computer. Open it ~/.subversion/configThe folder where you are located.

Open the config file with Notepad and locate the Global-ignores entry. The Global-ignores item lists the file formats that are not allowed to be uploaded. If you need permission to upload the. A file, then delete the *.a.

of course, we can also, through the smart SVN to configure.   Close Project----->settings

can generally be customized as:

*.o

*.lo

*.la

*.al

. Libs

*.so

*.so. [0-9]*

*.pyc

*.pyo

*.rej

*~

#*#

.#*

*.swp

. Ds_store

It is recommended that you set project----->default Settings to be consistent as well. 3.Smart SVN upload. A file another way. In fact, you can also set some type of file to binary type, so that SVN will ignore its check, directly according to binary type (svn allowed to upload binary). Through, this way to achieve, directly upload. A file for the purpose.

4. Leave the local code out of SVN control. In fact, each SVN-controlled folder has a hidden file *.svn that records and manages the files in that directory. You can remove the. svn file from the specified directory by using the console command, so that it is out of SVN.

sudo find/xxx/xxx/xxx-name ". SVN"-exec rm-r {} \;

Delete all the. svn files under the specified directory so that SVN cannot manage the code. Summary: In fact, Smart SVN is a graphical interface under the SVN management. We can use the command line to manage it all! Many problems, as long as the understanding of the principle, can be solved. hope to help you!

Use of Smart 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.