Use of SVN on Mac

Source: Internet
Author: User
Tags svn svn update

Reference Blog: http://blog.csdn.net/q199109106q/article/details/8655204

Need to configure SVN user rights of Friends please click??

First, the use of SVN

To connect to SVN, we need:

SVN address, user name, password

1. Upload the local file to the server:

kakasang:~ kaka$ svn import/users/kaka/desktop/demo (path to local file) svn://121.40.***.***/project/demo/(to SVN path)-- Username= (account)--password= (account)-m "Upload code"

-M back is a note remember to bring

PS: Local path can be directly to the folder into the terminal

2. Download the code on the server to a local

kakasang:~ kaka$ SVN Checkout (path on SVN)--username= (account)--password= (account) (local path)-m "Upload code"

3. Update the code on the server

Go to the folder that was uploaded to the server

cd/(path to file)

Update code

SVN commit-m "Update Code"

4. Update the code that the server downloaded to the local

cd/(Local path)

SVN update-m "Update"

Second, the problem in use

In the delete file times wrong svn:E205007:None of the environment variables svn_editor, VISUAL or EDITOR is set

Reference Blog: http://blog.163.com/lgh_2002/blog/static/44017526201046111856208/

Workaround: Add export Svn_editor=vim after the ETC/BASHRC file

So where is this file?

Open Finder shift+command+g Find/etc

Locate BASHRC File

The system warns you that you do not have permission to modify this file

To modify this file, copy one.

Change the copy file and replace the original file.

After the file has been replaced.

Terminal input SOURCE/ETC/BASHRC Let the configuration file take effect immediately

Use of SVN on 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.