TortoiseGit upload code to github

Github is a very large number of project code version management websites that our developers use. Project hosting can be private or public, with a private fee of $ 7 a month. Let's just talk about our personal use here, generally the code is open to the public; OK, Let's get started!

attention : Be sure to follow the steps below step by step!

step1: first of all has been installed to ensure that local TortoiseGit, no words to TortoiseGit official website to download TortoiseGit, address http://download.tortoisegit.org/tgit/ ;

step2: After installation, we first use TortoiseGit to generate SSH locally, enter 'start', find git and double-click Puttygen, we need to generate the key, this is to wait for the configuration key on GitHub (SSH):

 step3: Click Generate to generate the key. When generating the key, remember to keep moving the mouse under the progress bar, otherwise, the progress will be stuck. After the generation is completed, click Save private key, select 'Yes', save it to you A familiar folder, do not close the popup window after saving, you will use it later:

step4: Log in to your github account (no? Go to the GitHub official website. https://github.com/ to register one), click Settings to enter the settings page:

 

 Step5: Just add SSH Key at this time, Customize Title, the key is the key generated by the tool before, and then click Add SSH key:

 

 Step6: Create a new Repository, fill in the Repository name and description:

 step7: Jump after creating the warehouse:

 

 step8: Right-click Git Clone in the blank space of the desktop, download your project code from GitHub, the url is the SSH (project address) in the above picture, and Directory is the local directory:

 step9: Create a new file and submit it to GitHub later (successful, is it exciting, haha):

step10: In the current directory, right-click Git Commit and submit to merge the new functions together, whether it is new or modified, just Commit:

 

 

 

Note that you need to push. After the commit, it is only submitted to the local, and not submitted to the remote server.

step11: Upload the code successfully, go, go to GitHub to see:

 

 

Published 69 original articles · Like 72 · Visit 240,000+

Guess you like

Origin blog.csdn.net/londa/article/details/97896412