1. msysgit
Tortoisegit depends on msysgit, first download: http://code.google.com/p/msysgit/downloads/detail? Name1_msysgit-fullinstall-1.8.1.2-preview20130201.exe & can = 2 & Q =
Then download tortoisegit: http://code.google.com/p/tortoisegit/wiki/Download? TM = 2
2. Configure tortoisegit
Install msysgit.
Install tortoisegit, and keep it all by default.
Configure the GIT path:
Right-click tortoisegit-setting-General-msysgit on the desktop, and specify:
D: \ test \ git \ portablegit \ bin.
Create an SSH key:
Start Menu-tortoisegit-puttygen, generate, and save the Private Key to the local device (Key passphrase is not required), for example, save it to: D: \ test \ git. The saved key can be used again next time, for example, reinstalling the system. SSH key generated in the copy dialog box
3. Use GitHub
GitHub features similar to googlecode to facilitate code storage. On the homepage, go to edit your profile and find the SSH keys, add new SSH key, or edit existing SSH key. Take the title as needed and paste the SSH key copied above into the key column.
Create a project:
Home Page, new repository to create a project, fill in the project name and so on. After the creation, you can see some instructions, find the git@github.com inside: yourname/test. Git, copy this URL.
Create local folders, such as test, right-click-Git clone, and paste the copied URL in the URL. Load putty key: select the SSH key that is saved to the local machine. OK.
Submit code to GitHub
Right-click git commit and then push it to GitHub.
Others:
Fetch: download code from repository.
Pull: Fetch the repository code and merge to the current Branch (equivalent to: Fetch + merge ).
Clean up: delete files without Version Control
Add: add to version Library
Create branch: Create a branch
Switch/Checkout: Switch Branch
Show log: View branch and modification records
Reinstalling the system to continue using the key
Puttygen, actions-load, found: ssh-rsa_key.ppk
Locate the previously created git project, and then pull may see errors, such as git did not exit cleanly (exit code 128.
When pushing, you should see more detailed errors, such as: GitHub prompt: Please audit your SSH keys, and return a URL.
Open the URL, select reject/approve, and select approve. Now you can continue pull/push.