The code hosting address is:https://git.oschina.net
To host the code above the Git.oschina , you first need to register an account with Https://git.oschina.net, and then you can create projects or participate in collaborative project development with others.
1, register an account in Https://git.oschina.net.
2. Add SSH public key, using SSH The public key can let you on your computer and [email protected] use a secure connection when communicating ( git of the Remote you want to use SSH address).
3. Create a new project, as shown in the following steps:
4. Add the SSH public key as shown in:
5. Generate the Public key command, as shown in:
4. to add a public key to the Git.oschina
First, clone a project from Https://git.oschina.net to local
1, the Order of the clone project; git clone http://git.oschina.net/ username / project name . Git
2, submit the local project to the server, the command is as follows:
git Add *// committing the code to a buffer
git commit-m "version modification description Information"// Record Code modification information for easy code management
git push Origin master// submit code to server
Next follow the prompts to enter the user name and password, the password will not be displayed when the content, but this does not affect the user name and password authentication.
If everything is OK, then the project code upload progress should be displayed, and if the intermediate validation fails, an error message will be prompted.
There is no problem with the above, but you need to enter the password each time, if you do not want to enter the password each time, you can follow these steps:
First find the . Gitconfig file, which is generally stored under C:\Users\zengraoli and is not hidden.
The file exists in the C:\Users\Administrator directory in the blogger's computer .
Before the modification:
Modified to:
(git) using Git to manage code on Git.oschina