Gitlab create a project

1, install git

yum install git

 

2, generate the key file: using ssh-keygen generate the key file .ssh / id_rsa.pub

ssh-keygen

During execution password, and password confirmation, and set the key file output location

 

 

 3. View key file

cat /Users/cr/.ssh/id_rsa.pub

 

 

 

 

4, landing page management to gitlab

 

5. Create a new project (click to establish ad hoc)

 

6, click Settings ssh

 

 

 

 7, set the key created earlier

 

 8, save the key

 

9, idea to create a project

 

10, create a git repository

 

 

11. An order of execution screenshots

 

 

 

 

 

 

 

 

 The definition of a remote repository

Setting address

 

 Enter your user name and password

 

 

 

 

 

12, the document has been submitted to the gitlab

 

 

 

 

Guess you like

Origin www.cnblogs.com/xuchen0117/p/11961379.html