Using github or Visual Studio online version control management with Tortoisegit

Source: Internet
Author: User

First, preface

About git source code no longer elaborated, it is an open source Distributed version Control tool, it in the source control territory so far, the user proportion is very large, more and more people use this tool to manage project source code, and quite a lot of open source projects are going to GitHub, such as: Jquery,reddit, Node.js,redis and so on. Vistual Studio Online also provides cloud services for version control management, allowing developers to use version control functionality, eliminating the trivial work of managing version control tools for servers. On the client side, as long as you have Visual Studio installed, you can use the version control management features provided by these two cloud services through the IDE integration interface of Visual Studio.

In addition to using the version control features of GitHub, Visual Studio online, the client can also choose to use tortoisegit for both cloud services, except through the IDE of Visual Studio.

This article focuses on how to use GitHub or visual Studio online versioning management with Tortoisegit, to keep a record for yourself, and to help the kids who need it. Everyone follow my steps to start your git journey. Come on!

Second, install Git for Windows

The following must install Git for Windows First, and then install Tortoisegit so that you can use the version control feature with Tortoisegit to install git for Windows.

1. Download git for Windows to download the latest version from the official website and click here to download it. Git for Windows official website

Visit the foreign website Slow children's shoes can click here to download (here the version is 1.8.5.2), come down to me ... Password: aknk. Thanks to Baidu network disk to provide download platform.

2. After downloading, start to install Git for Windows, the installation step is simple, always click Next.

Third, install Tortoise Git

After installing Git for Windows, install tortoise git next. You can then use the Tortoisegit to use the version control feature.

Tortoise git installation steps:

1, download the latest version of Tortoise Git, visit the foreign site slow children's shoes can click here to download (here is the version of 1.8.7.0), to the next i ... Password: f853. Thanks to Baidu network disk to provide download platform.

2. After downloading, start installing Tortoise Git, the installation steps are also very concise, always follow the next step.

3. Set the user information required by the GIT function when Tortoisegit executes. In particular, the user information entered in this step is used solely as a git record, regardless of the user authentication function such as the account password.

Iv. versioning management features using GitHub (public Repository)

After installing tortoise git, you need to register an account on the Github.com official website, and then you can create a public repository on GitHub to act as a version-controlled unit.

Note This new repository URL as a subsequent clone repository to the local computer's credentials.

Then in the local computer, select a folder as the Project source management tool file access, and clone just new repository to this folder.

At this point, we can use GitHub's version control function as our developer or front-end siege master. Follow the steps below and you'll be able to commit the file to GitHub's repository.

Click OK, then click the Push button,

Then click the OK button.

Then enter the username and password that you registered on the GitHub website.

V. Version control management features using Visual Studio Online (Private respository)

The above is all about GitHub, although GitHub is convenient, but the source on GitHub will be public Repository, that is, anyone can download, if not non-open source projects, such as the company's own internal projects, We do not want the source of the project to be open, then it will be paid, for the Dick Wire Farm, it will be a spending, in this case, you can use the Visual Studio Online version control tool cloud, so that developers can use both version control and do not need to be public. Of course, the current domestic oschina.net and Csdn.net also provide private project source version control cloud. Only Visual Studio Online is involved here. Visual Studio Online is also available free of charge, and the team using the account is only 5 people or less and is free. Ideal for individual or small team development projects.

1. First register an account information with the visual Studio Online website. You can then create a private respository on visual Studio online as a version-controlled unit.

After the creation is successful, we need the visual Studio online interface to get the new repository URL as a subsequent clone repository to the local computer's parameters.

Before you start clone repository to your local computer, you must set up an account and password for a set of Git features in visual Studio online. This, in particular, indicates that the account password entered in this step is used as a GIT user verification feature.

Then click Enable Alternate Credentials

You can then follow the steps above.

Vi. Summary

Did you use git today, let's go Go go!

Using github or Visual Studio online version control management with Tortoisegit

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.