A signifcant proportion of our .Net source code is being checked in to TFS. For a number of reasons we have been investigating a migration to git as the TFS source code repository for some of our .Net solutions.
We have proceeded cautiously and have created a few git repositories that simply 'mirror' a selection of TFS repositories in order to avoid any side-effects in TFS. Code is still being checked-in to TFS via the VS IDE but there is currently no automatic way to keep the git repositories in synch with their TFS sisters.
We need to somehow automate a git-tfs pull command on each repository to retrieve any recent changes prior to each new build in Bamboo. How can this be achieved from within a task in a Bamboo build plan?