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
Svnserve-d
You can use netstat-lnpt to check whether port 3690 is enabled.
Assume that you are in the project root directory
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.
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.
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.