'Do Git and TFS Play Well Together?

I tried to do a git init on a directory under TFS control - and no .git files were created. When I tried again to do a git init - it recognized I had already tried - but still no gitattributes or gitignore files. Do Git and TFS work on the same directories?



Solution 1:[1]

git init doesn't add any files by default, it just initializes a git repo locally (adds a hidden .git folder to track git data in. You'll need to add these files manually.

With regards to "in TFS", if you mean TFVC, I don't recommend mixing TFVC and git in the same working folders. It throws off Visual Studio considerably. Though you can probably get it to work from the commandline if you exclude tf$/ in git and ignore .git/ in TFVC.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jessehouwing