Git and github use (b) uploads

Create a good project connected to the papers in.

1, into the appropriate directory Right Open Client Git bash here

2, create a readme text

$ Echo "# Python Daily Record accumulated" >> README.md

It quotes the text of the content readme

3, the directory can become a Git repository management

$ git init

4, add the readme file to the repository

$ git add README.md

5, all files in the current directory of all added to the repository

$ git add .

6, the submission of documents to the repository

$ Git commit -m "Python Daily Record accumulation"

7, associated with the remote repository, create a good project connected to articles in

$ git remote add origin [email protected]:hanshoukai/Python-.git

8, you upload the code and enter the desired password

$ git push -u origin master

enter password

9 to see if the upload was successful

 

Guess you like

Origin www.cnblogs.com/hanxiaobei/p/11279223.html