Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use git tfs with a team

Tags:

git

tfs

git-tfs

I recently started using git tfs as a bridge between working and committing locally with git and then comitting to tfs to go through our continuous integration system and share with team members.

I would like to start collaborating with my team using git for source control to share branches and changes, then eventually checking in to tfs for continuous integration.

Is that something I can do, or is git tfs only for one person working locally?

like image 815
Evan Avatar asked Oct 14 '11 00:10

Evan


People also ask

Can I use Git with TFS?

Git in Visual Studio, Azure DevOps Services, and TFS is standard Git. You can use Visual Studio with third-party Git services, and you can also use third-party Git clients with TFS. To learn more, see Git and Azure Repos.

How do I join a team project in TFS?

Select the Manage Connections button in Team Explorer to open the Connect page. Choose Connect to Team Project to select a different organization, TFS, or project to connect to. Select the projects to work on. If it's your first time connecting, add TFS to the list of recognized servers.

What is difference between TFS and Git?

In TFS there is no simple way to save the state of your changes (file additions, modifications, file deletions), and switch to another state of code. (For example, to work on two features and switch back and forth). In git, you simply checkout a different branch.


1 Answers

We have just started to use Git, Github and Git TFS. We are in the process of moving from TFS to Git, and Git TFS is working great! We still need TFS around for a short while longer while we move our build scripts to read from Github instead of TFS, but until that day comes we have to copy the changes back in to TFS.

No, Git TFS isn't strictly a one user system, but I guess it comes down to how you chose to use it. In our system one developer checks in the results from a dedicated branch on Git in to our TFS master branch using Git TFS when we need to copy the new changes back in to TFS (to trigger the build scripts). However, up until that point we just use Git and Github for all work and code collaboration.

As has been mentioned, the 'Git TFS bootstrap' command can come in useful for the developers that didn't perform the initial checkout of code from TFS since this command copies the necessary TFS information to the local .git/config file pointing them at the correct TFS branch. If they ever want to pull or checkin then they will need this first along with Git TFS installed on their local machines.

like image 60
Lee Francis Avatar answered Sep 18 '22 18:09

Lee Francis