The development team uses Git Repository in TFS (i)

Source: Internet
Author: User

In the research and development team, code versioning is the most fundamental and essential tool. The version management tools that have been used by individuals are SVN, VSS, ClearCase, TFS, Git, and from a team perspective and usage perspective, individuals tend to use TFS as the base tool for teams. First, the performance and capacity of the research and development team for all sizes, from a few people's small team to thousands of large research and development team, followed by the software development cycle team All the role of the work of support and data between the organic integration and correlation; Finally, the use of low cost, most of the functions are out of the box.

TFS offers two versions of TFVC and Git, 13 and earlier, and the repository is defined as a project, which means that a project team can only choose two in TFVC and Git. This limitation has been changed in a later version of the TFS2015 version, and in a team project, you can use both types of repositories as needed.

This article focuses on how to use the GIT library in TFS as a development tool for your team. The development tool used is VS2013, and the version tool uses TFS2015.

1. Use vs to create a new GIT project code base

Usage: Initially build the development team or you need to add the existing project code to the repository for the first time to create the team's code base.

Create a new project solution and choose Add Code Management

Choose Git Code Library

Create a new Git library in TFS and record the Git repository address

Publish the code in the code base created above

Commit the code in VS and sync to the Git repository in TFS

View the project code for the initial inventory in TFS

2. Use vs to get an existing Git project code base

Usage: New team members join and need to get project code from an existing project code base.

Link to a team project in VS and Clone the Repository

Open Project code to work

3. Code submission, synchronization

After the code is edited, we can commit the code to the local git repository and, depending on the situation, push it to the library in TFS.

Commit-Submit the code only to the local git repository

Commit and push-commit to a git library in TFS while the local git repository commits.

Commit and sync-commit in a local git repository, and local changes push to the GIT repository in TFS while pushing changes to other team members in the TFS git repository to local

The development team uses Git Repository in TFS (i)

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.