Use tortoisegit GitHub in Windows

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.