Git project Initialization

Source: Internet
Author: User

1. in the upper-right corner of the GIT server interface "+" and "create new project", write the project name to generate a new group.

2. if the machine establishes a connection with GIT for the first time, the machine needs to generate an id_rsa and id_rsa.pub file, and then open it without spaces. copy the pub file to my project-> SSH key-> Add new-> On the GIT server interface and add a name. paste the content to the enlarged content. If there is no problem, click OK. Generate id_rsa as follows:

Ssh-keygen-t rsa-c "[email protected]"

Press 3 and press Enter. If the password is blank

Finally, two files are obtained: id_rsa and id_rsa.pub.

Add an SSH key on the GIT server interface, which is the public key in "id_rsa.pub.

(The content in Part 2 has not been successfully verified)

You can also copy id_rsa on a machine that has established a connection with the GIT server ~ /. Ssh. You do not need to add a public key to the GIT server interface (private key is not suitable for everyone)

3. Next, the GIT server interface will prompt you how to do the following:

Git config -- global user. name "firstname lastname" Git config -- global user. email "[email protected]" Git init git add. // under the root directory of the project to be submitted, git commit-M "first commit" Git remote add origin [email protected]: xxx/xxx. gitgit push-u origin master

 

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.