1. Preparation
Download git for Windows (msysgit)
Download tortoisegit
The installation process is simple, always click Next to finish.
2, Configuration Tortoisegit
1. Double-click the Puttygen.exe generated key under the Tortoisegit installation directory. Click the Generate button.
3, copy the key (to use later), click the Save Privete Key button, select a common address to save the key.
4, double-click the tortoisegit installation directory Pageant.ext use the key, the navigation bar appears icon, double-click it.
5. Click the Add Key button to open the previously generated key file and close the window.
6. Set the user information required for git function when Tortoisegit executes. The information entered is used solely as a git record, regardless of the user authentication function such as the account password.
3. Configure GitHub
1. Login to GitHub and click Settings.
2, click Add SSH Key, add the key information.
3, in the title to fill in a name, the previous copy of the key copied to the key column, click Save.
4. Upload Code
1. Create a new project in GitHub, where you select a public project and do not generate additional files.
2. Copy the SSH link for cloning the project to the local computer.
3, in the local computer's own common directory, right click on the mouse, click Git Clone.
4. Automatically fill in the URL and directory, click OK. If there is an error, check to see if the key is loaded.
5. Create a new test file, select right click, select Add under Tortoisegit.
6. Right click to select git commit-> "Master", select the file to submit, add the modification information, click OK to submit to the local repository. When you are finished, click Push to upload to the GitHub repository.
7. You can now view the uploaded code in GitHub.
Uploading code to GitHub using Git (msysgit) and Tortoisegit