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)