Phpstorm Integrated Open source China (oschina.net) Git project, when submitting SVN considerations

Source: Internet
Author: User
Tags version control system

First Step: Configure Git.exe

File, Default Settings, Version Control, git, Path go git executable: D:\Program files\git\bin\git . exe

Step Two: Clone project

VCS - Checkout from Version Control , Git , Clone Repository , fill in the project's GI T information, such as

Git Repository URL: https://git.oschina.net/xxx/php-note.git
Parent Directory: d:\PHP\xampp2\htdocs\
Directory Name: php-note

Note : If the directory already exists, such as d:\PHP\xampp2\htdocs\php-note, it needs to be deleted or renamed.

Step three: Let the project integrate VCS

VCS-Enalbe version control integration Select a version control system to associate with the project root, choose C3>git

note that when the pull file is to the Oschina server, the box alert " does the line break automatically change?" "Here, choose not to convert, i.e."Commitas is ", as shown in:

Ubuntu Install git

sudo apt-get install git

"What to consider when submitting SVN "

1, as shown, before submitting SVN, on the right side in addition to tick the first check box, the others do not tick, otherwise there will be a variety of formatting code, such as tampering with the code, such as

Tick "Cleanup", code

onclick= "Leave_del (' <!--{$val [' Leaveid ']}--> ')"

will be changed to

onclick= "Leave_del (' <!--{$val [' Leaveid; ']} --';) '

This is not the result I want!

2, in addition, when configuring SVN, File, Default Settings, Version Control, SVN, remove the checkmark "Enable interactive mode "

3. How to resolve conflicts?

Right-click Conflict files, Subversion --- Resolve Text Conflict...

Phpstorm Integrated Open source China (oschina.net) Git project, when submitting SVN considerations

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.