Use tortoisegit in indows to manage GitHub Projects

Source: Internet
Author: User
Tags ssh config ssh config file
Previously, I used tortoisehg to manage the project, and I never used tortoisegit. These two products respectively made a graphical interface for the Distributed Management Tool Hg and git to make it easier to use. You do not need to remember many commands. In addition to the differences between Hg and git, the difference between tortoisehg and torgoisegit is that tortoisehg has integrated the version management tool Hg, while tortoisegit relies on msysgit. 1. Install msysgit first. When toitoisegit is installed, the system will automatically detect and set the GIT directory as follows:

2. Configure tortoisegit

Download: http://code.google.com/p/tortoisegit/downloads/list
Install tortoisegit, and keep it all by default.

Configure the GIT path:
Right-click tortoisegit-setting-General-msysgit on the desktop, and specify:
D: \ webdevelopment \ 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: \ webdevelopment \ git. The SSH key generated in the copy dialog box is similar:
Ssh-RSA
.....
.....
... = Rsa-key-20120218

Tortoisegit-setting-Git-config, and enter name and email.


GitHub has two connection protocols: SSH and HTTPS. The following describes how to connect the two methods: https is more convenient. Enter the HTTPS address in the address bar of the browser in the URL field:


There are two types of proxy software available for SSH connection: putty (GitHub only provides support for OpenSSH .) openSSH that comes with GIT: the SSH that comes with GIT can be found in the GIT installation directory \ bin \. If you have previously connected to gitbash, you can choose this method.
In the first step of getting started, set up git issues are listed as follows and solutions are provided. If you do not need a graphical tool, you need to set up an SSH connection proxy when you directly connect to GitHub using gitbash. The solution is as follows: Problem: Bad file occurs when test everything out:
1) Create an SSH config file:

VI ~ /. Ssh/config

Content:

[Plain]View Plain Copy
  1. <Span style = "font-size: 18px;"> host github.com
  2. Proxycommand ~ /. Ssh/ssh-https-tunnel % H % P
  3. Port 443
  4. Hostname ssh.github.com </span>

2) download ssh-https-tunnel can be saved from the http://zwitterion.org/software/ssh-https-tunnel/ssh-https-tunnel to your git ~ /. In the SSH directory, and rename it ssh-https-tunnel.

At the same time, you need to open this file and modify the following:

[Plain]View Plain Copy
  1. <Span style = "font-size: 18px;"> # proxy details
  2. My $ host = "172.17.18.84 ";
  3. My $ Port = 8080;
  4. # Basic proxy Authentication-leave empty if you don't need it
  5. My $ user = "";
  6. My $ pass = ""; </span>

Change to your actual proxy server address and port. If you need a user name and password, enter the following.

Use tortoisegit in indows to manage GitHub Projects

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.