GUI software configuration and usage for Git hub under windows

Source: Internet
Author: User

Reprinted from: http://www.cnblogs.com/haore147/p/3618930.html

1. Installation of two software

12 1. git的命令行程序--git forwindows:http://git-scm.com/download/win2. git的GUI程序--tortoisegit:http://code.google.com/p/tortoisegit/downloads/list

It is necessary to notethat the tortoisegit comes with a help document, a CHM file that can be used as a step by step tutorial for learning this content:

2. Generate and configure the corresponding private key for private SSH key

GitHub configuration SSH Key This operation is optional. This step is just for security, just.

2.1 Start Puttygen。 First use Puttygen to generate a "private key". Perform Puttygen in the Start menu Tortoisegit Group:

2.2 Generate private key

  

Click on the "Generate" button:

2.3 Save private key

Click on the "Save private Key" button to save:

2.4 Start Pageant

After you have saved it, you need to add it to the pageant and execute the pageant:

You can see the pageant icon in the system notification bar after execution:

2.5 Loading the key file for private key

Double-click the pageant icon and click the "Add Key" button in the Pageant Key List window to select the key file (***.PPK file) saved above:

2.6 Login to GitHub master, set up personal SSH key

Here the local key is configured, you need to add the key to the server, log in and click the "My Profile" button, on the My profile page, click on the "ADD Public key" button:


In the Add an SSH key, paste the SSH from the front window into the key input box:

3. Create a git library 3.1 Click Git Create repository hereRight-click on the project folder, select "Git Create repository Here", then click the "OK" button and then "Proceed" to create a ". Git" hidden directory in the project file:

3.2 Setting up the user's information

In the project folder, right-click settings such as:

Click Git in the navigation directory on the left to set user information: Name is your username on GitHub and email is the verification email.

3.3 Setting up git remote server related information

Click Remote in the navigation directory on the left to set up the remoting information: your existing repository name on GitHub, the URL corresponds to the repository address, and key is the SSH private key you generated and saved above.

4. Submit your code to GitHub

4.1 Submit code to local library

Click "Git Commit->master ... ”:

The commit dialog pops up, listing the "Deleted Files", "Modified Files", "New files" in the current library. Tick the file that you want to commit, write a few words, and then click OK.

After 4.2 commit, perform a push operation

After the commit is executed, you can see the message that the submission was successful, and finally click Push.

In the Push dialog box that pops up, you need to set the repository location of the github you want to upload and select it from the remote drop-down list.

Finally, click the OK button to start push.

5. Log in to the GitHub server to view the results of the push

The entire process is complete, and you can see the code you just submitted as you log on to the server:

Wood provenance: http://haore147.cnblogs.com/Blog Article most of the original, copyright belongs to the author and the blog Park, Welcome to reprint.

GUI software configuration and use of Git hub under Windows

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.