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