Update: I don't use TFS anymore. But from the comments I can see that git-tfs is obviously the way to go nowadays.
Has anybody experience using Git as an offline solution for Team Foundation Server?
For Subversion you could use git-svn to keep a private repository with a svn backend.
I tried to use SvnBridge and git-svn to work with TFS. At first it looked promising but Visual Studio recognizes the solution as being under TFS version control and interferes during commit.
Are there other ways to combine those two?
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.
Git-tfs is an open source two-way bridge between Microsoft Team Foundation Server (TFS) and git, similar to git-svn. It fetches TFS commits into a git repository and lets you push your updates back to TFS.
You should use Git for version control in your projects unless you have a specific need for centralized version control features in TFVC. In other words, if you have a very specific reason why you need to continue using TFVC, Microsoft would rather you didn't.
TFS (Team Foundation Server) and TFVC (Team Foundation Version Control) are different things. TFVC used to be the only option of version control on TFS so there's still a misconception that to use TFS you have to use TFVC — but that's not the case anymore since 2013 when Microsoft started adding Git support.
I've started working on a tool called git-tfs, similar in some ways to git-svn.
https://github.com/git-tfs/git-tfs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With