(git) using Git to manage code on Git.oschina

Source: Internet
Author: User
Tags using git

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

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.