VisualStudio has release TFS their service, so using your Microsoft account you could get that service.
Steps:
go to https://www.visualstudio.com/
LogIn and click on your accout name
Once you see your dashboard, click on "Create a free account now"
enter a valid name for your URL
You'll see an overview of your projects, and as default "MyFirstProject", click on it to see more
Now you have your TFS online
Connecting to your VisualStudio code
Open you visual studio and open "Team Explorer" tab
click on the green button and on "Manage Connections"
Enter the information as below
Take care about the URL, its the same that you enter when your create previously, if a login prompt appear, just logIn using your Microsoft account
Map your path and star programming, do not forget "Check In"
Regards
If you do not know how to use a Team Foundation Server, there are a lot of tutorials on google
for GIT repository, in short future Post.