Http://code.google.com/what can I do? I am a programmer. I usually write some small programs by myself. I want to work for my boss and have a machine dedicated to me in the company, I have my own notebook. When I don't work, I like to write some programs in my notebook. The problem is that I often want to develop the same program on two machines, so I often use a mobile hard disk or a USB flash disk to copy files to each other. This method is extremely troublesome and confusing, in this case, I need a version management system. I want to store my code on the network, and then use the svn or CVS code version tool on the two machines to update the code to the local code repository at any time, when the code repository is changed, you can upload the code to the network at any time. In this case, Google Code is ready.
If you want to host your project on the network, you can choose the well-known SourceForge or Google Code. For SourceForge, the trouble is that the operation is particularly complicated, and Google Code is easier to get started. In this regard, Xu Shiwei's article on the Internet is very detailed: Open Source, Google Code or SourceForge ?. Next we will introduce how to use Google code + SVN to transfer your project to Google Code.
1. Have a Google account, such as foo@gmail.com
2. Enter code.google.com
3. select Open Source => Project hosting in the left navigation bar and click to enter
4. Select create a new project in the middle of the page
5. Follow the prompts to create a project
6. foo@gmail.com | my profile | what's new in the upper-right corner of the page? ..., Click my profile
7. Open the my profile page, project? Ownership: Foo. Click the foo hyperlink.
8. Enter the project you just created and click the "Source" tab.
9. The SVN address we found to be taken out is: https://foo.googlecode.com/svn/trunk (FOO for your corresponding Google account)
10. Create a directory on the local hard disk to back up our project code, for example, googlecode
11. Suppose you have installed SVN. If you have not installed SVN, install the turtle version! Right-click SVN check (SVN check out) and select the svn address of the project created on Google Code: https://foo.googlecode.com/svn/trunk. in this case, the address is written as a token.
12. After the directory is retrieved, add a new file under the trunk directory to test the file, upload the file, and prompt the user name and password. Naturally, enter the user name. The password is not your Gmail password, but a Project password generated by Google code, which is included in the settings tab of my profile, or click the Google password link in the source tag to obtain the password. Why is there a Project password instead of a Google account password? Because several other members may be involved in your project, they also need to enter a password for the operation. OK. The test is successful. Next we will move our project to Google Code!
13. for example, if our project code is in D: \ myproject, we first create a directory named TMP, D: \ TMP on disk D, and then move our myproject directory to the directory named TMP, right-click D: \ TMP, select SVN import, and select the trunk address of our Google code, so SVN imported all the folders and files in this folder into our project on Google Code! This is only to create a new folder because if you import data directly to myproject, The myproject directory will not be created on the svn server, but will only create content in this folder.
14. Finally, update your local googlecode directory to see if the project code we just imported has been downloaded!
15. Use beyondcompare to compare the source code between the local code workspace and the local SVN directory. This tool is very useful!
Okay, that's all about the Google Code backup code! Next I want to talk about an idea of using Google Code to save my blog articles.
Recently, I like reading and writing blogs, and reading blogs with Google Reader. This tool is awesome! Writing a blog is a little troublesome. I want to save my articles both locally and on the network, but some of the tools are not so intelligent. Since manual operations are still required, let's just try something different!
My idea is:
Use Google Code to manage my blog articles through source code management. For example, my blog posts are classified:
Technology => technical subdirectory 1, technical subdirectory 2...
Life => sub-directory 1 of life, sub-directory 2 of life
And so on. So I created a "Blog system" folder under my chunk, and then created the corresponding folder according to the category above. Then, when I want to write a blog, I ran into the corresponding blog directory under my local chunk directory, for example, "Life subdirectory 1" under the "life" directory, and used Dreamweaver to create an HTML file, then I write a blog in Dreamweaver as I do now. Then use the beyondcompare tool to update to my SVN directory, and finally upload it to the trunk on my Google Code. Of course, there is another step. Copying my articles to my blog on the Internet may seem complicated. In fact, it is not troublesome. In this way, I can save my blog articles in duplicate. In addition, I want to create a config. the INI file creates a section for each article in this directory to describe the relevant information of this article, for example, using the following format:
[Googlecode-related]
Title = use Google Code to back up code and back up blogs
Time = 2007/08/16/0
KEYWORDS = Google Code/SVN/backup/blog tools
Compile the XML format to organize it. This is easy to write a small tool later. Create an index.html page, combine the files in my local blog system, and parse the config in each directory. ini or config. XML file to generate the corresponding list and hyperlink (my blog post uses the HTML file generated by dreamweaver. this is equivalent to browsing all my local blog articles through index.html, forming a simple blog system!