Linux GitHub code repository to build

1, the installation tool GIT

 sudo apt-get install git

2, see the software version, confirm the installation OK

 git --version

 

3, checks to see if over ssh keys

ls -al ~/.ssh

  

Without this file, execute the following statement to create

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

 

Double quotes for personal email

4, enter the folder view /root/.ssh

 

5, open the file id_rsa.pub

 

Key in the copy file

6, enter the web page github

 

 

 

 

 

7, create a personal warehouse

 

 

 

 

 

 

 

8, the top copy of ssh address

carried out

 git clone [email protected]:wangchaoHZ/Linuxtp.git

 

9, create folders and files

 

10, view and edit status

git status

 

11, add the modified files

git add .

 

 Add file turns green to denote OK

12, Commit files

git commit -m "helloworld"

 

 13, push files to a remote github

git push origin master

 

 14, github page view

15, see the changes point

 

 

 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

 

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

16、删除仓库

选择setting

 

 网页拖到底

 

Guess you like

Origin www.cnblogs.com/achao123456/p/11996201.html