1. What is git?
Git defines Wikipedia: it is a free, distributed version control tool, or a source code management tool that emphasizes high speed. Git was initially developed by Linus Torvalds for Linux kernel management. Each git working directory is a completely independent code library with complete history and version tracking capabilities, independent of the network and central server.
The emergence of git has reduced the pressure on many developers and open-source projects to manage branch code. Due to its good control of branches, developers are encouraged to contribute to projects they are interested in. In fact, many open-source projects, including Linux kernel, Samba, x.org server, and Ruby on Rails, have transitioned to using git as their own version control tools. For developers who like to write code, there are two major advantages: We can submit our own code and view the code version anywhere (on the subway station at work; we can open many branches to practice our ideas, and the overhead of merging these branches is almost negligible.
2. Use git
Git hub is a popular hosting platform on the Internet, but because of the network environment in China (You know ), in China, git Hub still needs to be paid a weekly discount. So this article will introduce you to a domestic code hosting platform ------ oschina
First let's talk about the oschina code hosting address: https://git.oschina.net/, can create up1000Projects, not limited to private or public, I think it is enough for individuals or small businesses. In addition, after my tests, the speed is still quite powerful. Now, I will introduce you to the following illustration.
Go to https://git.oschina.net/, as shown in the following figure,
Select a registered user or use a third-party user to authorize logon. However, you must activate the account email before using either of the two methods.
Click Create Project
Create Project page
If you do not want to publish a project, select "Private project"
We recommend that you select the following check box and click Create project. The project name here is recommended to be the same as the project name in eclipse.
Click Create project. The following page is displayed.
Interface after creation
In this case, there is only one readme. md file in the remote project.
Now we have created a project on oschina, so that we can use the GIT client for code upload and version control.
(To be continued)