Small white can also use Git to manage the team project: Baidu Cloud synchronization +git extensions+git Source Control Provider

Source: Internet
Author: User

Baidu Cloud Synchronization

Baidu Cloud synchronization, will be a local file directory and the cloud synchronization. If you set this synchronized directory locally as the central server for Git, the contents of the local push-to-hub server will also be synced to the cloud. Other developers will be able to collaborate as long as they have the same settings.

Using a remote and native to simulate two developers, install Cloud Sync first.

git remote repository command new hub server

Create a MyTest project folder in the synchronization directory first.

Then use "Git init--bare" to build the central warehouse, the central warehouse will automatically sync to the cloud. Here an empty central server is built.

Clone a warehouse

There is already a central server, but the central server is still E:\bidiproject in our own disk directory, but its contents will be synchronized with the cloud. Copy a local git repository from the hub server using clone.

Push

Add a test.txt file to your local git repository G:\mytest:

Then submit to the Hub server:

To view the hub server:

Pull

Remote to another computer, install cloud Sync and git, then configure a git user name and clone the current repository. Then add some of your own content.

Back to the local, update the cloud Sync, you will find that the central server has already obtained the content submitted above.

The following gets the content to the local repository and discovers that a my.txt file appears in the MyTest.

Visual Studio Plug-in

Search for Git in extensions and updates, download git extensions and git Source Control Provider.

Git Extensions Installation

Open the installation file for installation, one of the following as shown, if you have previously installed msysgit you do not have to tick, tick kdiff.

Git Source Control Provider settings

Click "Tools", "Options" on the VS menu, expand "Source control" on the left, and select "Git Source Control Provider" in the "current source control plug-in" on the right.

Then choose Git Source Control Provider options to set the installation directory for Git.exe and GitExtensions.exe.

VS Project

Create a console program where the directory is in the local library of the MyTest we created earlier (TXT in the library has been deleted)

Set the file to ignore commits and pushes, and files like bin are not synchronized, the default ignore option is used here.

Commit the changes, if you want the changes to be able to submit to the central server, select Submit and push, this time you will find the cloud disk is working, indicating that there is new content submitted to the hub server.

Reference

Http://www.cnblogs.com/wilber2013/category/643754.html

Http://www.cnblogs.com/wojilu/archive/2011/11/16/using-git-with-visual-studio.html

Small white can also use Git to manage the team project: Baidu Cloud synchronization +git extensions+git Source Control Provider

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.