1. Download and install the relevant software
The main software involved here includes Msysgit and Tortoisegit.
Msysgit: Http://msysgit.googlecode.com/files/Git-1.7.4-preview20110204.exe
Tortoisegit: Http://code.google.com/p/tortoisegit/downloads/list (Choose your favorite version to download)
Location of settings in 2.TortoiseGit
Since I am a 64-bit computer, I will show settings. Left-click to enter the Tortoisegit settings screen. As you can see clearly, the Msysgit has been configured well. If the location of the Git.exe is empty, please set it up manually.
3. Establish a communication between the remote repository and the Tortoisegit
The communication bridge mentioned here is the key used in the communication. Tortoisegit uses a key with an extension of PPK instead of the RSA key generated by Ssh-keygen. That is to say, using ssh-keygen-c "[email protected]"-t RSA generated key is not available in Tortoisegit. For GitHub-based development, the RSA key must be used, so the Tortoisegit Putty Key Generator tool is used to generate a PPK key that applies both to GitHub and to Tortoisegit. Locate the Tortoisegit installation location run the Puttygen program in the Tortoisegit Start menu, click the "Generate" button, the mouse in the blank space to move back and forth until the progress bar is complete, will automatically give birth to a random key.
4. Then log in to the GitHub website and add just the random key to SSH keys, as follows:
5. The public key has been added. Then click "Save Private Key", the private key is saved locally, the file suffix is PPK, the next will be used!
6. Then create a new project on GitHub, as follows:
7. In the root directory of your project, right-click on the left, Git Clone ...:
1). Paste the path you copied in the URL of the popup dialog box (the path to the new project in GitHub)
2). Tick the check box in front of the load Putty Key and select the. ppk file you saved.
8. Add the hidden folder in the new directory. Git cut it out.
9. Then start adding resources to the remote repository by doing the following:
10. Finally, the push command is used to push the update of the local branch to the remote host! Before this, first determine the setup of the destination remote, as follows:
The procedure is as follows:
11. Review the GitHub project and you will find that it has been updated.
Tortoisegit and GitHub implementation of project uploads