Use Google Code and subversion to manage projects

Source: Internet
Author: User

It seems that Google is relatively stable to use, so it is safer and more secure to store code.

Google Code

Prerequisite: used for Google accounts. If you do not have one, apply for it by yourself. For more information about the application process, see other logs.

1 Enter Google Code hosted URL http://code.google.com/hosting/

2. ClickCreate a new projectTo create a new project.

3 into http://code.google.com/hosting/createProject Page, enter the project information here:

Project name (the name cannot be the same as that of another project), Summary, description, and so on. Select the version control system;

Version control system has three options: git, mercurial, and subversion. Select subversion here;

Select New BSD license for source code license, which is the source code license mechanism.

After entering the information, click Create project to create a new project.

I will not repeat what the project page looks like here.

It is particularly important to see the svn check out path of the project on the source> Checkout page:HTTPS: // Aayzj.googlecode.com/svn/trunk/
Aayzj -- username jerryyao1987@gmail.com. You also need to clickGooglecode.com password.Link to generate the svn password.

The SVN server URL, user name, and password can be output by Google Code. They are of great use in subsequent subversion usage.


Subversion

1 Installation

In ubuntu: APT-Get install Subversion

You can select a version for other operating systems.

2. Use

  • Enable SVN Server

Svnserve-d

You can use netstat-lnpt to check whether port 3690 is enabled.

Assume that you are in the project root directory

  • Import -- the first time

SVN import-M & quot; New Import & quot; aayzj https://aayzj.googlecode.com/svn/trunk/ -- username
Jerryyao1987@gmail.com -- password XXXXXXXX

Effect:

Add aayzj/errorlog. h

.......

Make this directory a version control directory to distinguish it from a common directory.

If this command is not used for the first time, "XX is not a working copy" may occur.

  • Add File

You can add an object in two steps:

1. Add the file to the version control directory. This is also required even if the file is added to the directory that becomes the version control directory.

SVN add svnyzj

2. upload files in the version control directory to the svn server (Google Code)

SVN commit-M "add Test file for my test" svnyzj

3. Download a project or file

SVN checkoutHTTPS: // Aayzj.googlecode.com/svn/trunk/ aayzj -- username jerryyao1987@gmail.com

Downloads all the files in trunk to the aayzj directory created in the current directory.

  • Lock/unlock

SVN lock-M "lockmessage"
[-- Force] path

SVN
Unlock path

You can either unlock a local version control directory or file, or unlock a Google
Code directory or file

Bytes.


 

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.