Using Git to manage GitHub projects under Windows

Source: Internet
Author: User
Tags how to use git using git version control system

Git

Git is an open source distributed version control system for efficient, high-speed processing of project versioning from very small to very large. Originally written by Linus Torvalds, used as the management of Linux kernel code. Since its launch, Git has also been a big success in other projects, especially in the Ruby community.

Github

GitHub is a managed platform for open source and private software projects because Git is hosted only as a unique repository format, so it's called GitHub. GitHub can host a variety of git libraries and provide a web interface, but unlike other services like SourceForge or Google code, GitHub's unique selling point is the simplicity of branching from another project. Contributing code to a project is simple: first click on the "Fork" button of the project site, then check out the code and add the changes to the code base you just separated, and finally request a code merge from the project owner through the built-in pull request mechanism. The above introduction is excerpted from Oschina.net, and here's how to use git to manage GitHub projects under Windows

1 Create an account on GitHub, which is simple enough to not repeat.

2 Downloads Install git:http://code.google.com/p/msysgit/downloads/list installation is simple, all the way to next.

3 login Githbu After creating a new warehouse (repository), named HelloWorld, after successful creation such as:

4 above just created an empty code repository, and the following creates a HelloWorld project locally, and pushes it to GitHub. Create a directory structure for D:\GitProject\HelloWorld.

5 open git command line git base, enter the following command to provide identity, mainly user name and mailbox:

6 the same CD command goes into the HelloWorld directory you just created, and then uses GIT init to initialize the current directory, which generates a. git hidden directory:

7 Add a Readme.txt file to the D:\GitProject\HelloWorld directory, write "My first Hello World project!" in the file, and add it to the library with the git add command and the git commit command.

8 Below is the most critical step, to submit the local code base to GitHub, first use the command to create the key, which will be used in GitHub settings.

9 My system is Windows Server 2008R2, generate the key in the C:\Users\Administrator\.ssh directory, open the Id_rsa.pub file, copy all contents inside.

10 Click on "Account Settings" in GitHub to go to the Settings screen, select "SSH public Keys", then click "Add another Public key"

11 Paste the contents of the key you just copied into the corresponding box.

12 Use the command to verify that the setting is successful

13 Now everything is ready, using commands in git base to push local code to GitHub

14 Now refresh the project page under GitHub, as shown below:

Transfer from: http://www.cnblogs.com/oec2003/archive/2012/02/06/2741993.html learning materials

Http://www.worldhello.net/gotgithub/index.html

http://www.cnblogs.com/wojilu/

Pro git Chinese version download

A good git ppt introduction

Using Git to manage GitHub projects under Windows

Related Article

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.