Linux git associated with github repository

Background: Due to the recent learning of Spring cloud docker one-click deployment, it is necessary to start the github repository project on Linux,

(The following location is executed in the /root/ directory) step,

1: Install git

>yum install git -y

Check if the installation was successful

>git --version 

2: generate ssh

 ls -al ~/.ssh Check whether it has survived, and the command to generate the ssh key (replace with your own github mailbox): 

ssh-keygen -t rsa -C "[email protected]"

At this point you can see it in the /root/.ssh/ directory

vim view and copy the contents of the id_rsa.pub file

3: Copy the SSH KEY to github

 

Then take a Title title by yourself, and throw the ssh key into the content and it will be OK

4: Copy the github project to linux and submit the changes

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324726139&siteId=291194637