Upload local files to github (little turtle method)

1. Open  https://github.com/

  Log in to the github account (create it yourself if you don't have one), click on the upper right corner to create a new warehouse

  

  Fill in the name in the opened page

  

  Click Create repository, the following page will open, copy the address pointed to by the arrow (use it later)

  

2. Locally, right-click in the same level directory of the file to be uploaded, and select Git Create repository here (locally, you must install git and the turtle tool first, otherwise there is no such option)

  After all the way ok, you will find a hidden .git directory in the local

 

3. Then, right-click in the same level directory of the file to be uploaded and select Git Clone (git and turtle tools must be installed locally, otherwise there is no such option)

  

   The address bar will be automatically filled with the address just copied, if not, manually ctrl+v, click the ok button.

 

4. Still here, right-click and select Git Commit (git and turtle tools must be installed locally, otherwise there is no such option), and submit to the local repository.

5. Right-click and select Pull under TortoiseGit, and pull the remote file to the local.

6. Right-click and select Push under TortoiseGit, upload the local file to the remote, wait for the upload to succeed, refresh the github page you just opened (the end of the first step), you will find that at this time, your file has been uploaded successfully ! 

Guess you like

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