Unable to import a git repository into TFS 2017.3
I have been trying to import an external Git repository into an on-premise TFS server and been hitting an unhelpful error:
No amount of jabbing the button helps, and absolutely nothing is stored in the event or file logs on the Team Foundation Server itself.
Solution? For me, it was a web-proxy. Irritatingly, TFS uses the Internet Explorer proxy settings and not the WinHTTP system proxy, so no amount of typing in netsh commands will get you out of this one.
Instead what you have to do is:
- Set TFS to use a service-account
- Grant that user logon rights (e.g. Remote Desktop Users)
- Interactively logon as the service account
- Change the Internet Explorer Proxy settings to your desired configuration
- Logout
- Remote desktop logon rights from the service account
- Restart the App Pool in IIS running TFS
- Try again
If you have to manually authenticate with your proxy, you're bang out of luck and will have to run yet another proxy as a shim between TFS and your authenticated proxy.
I was disappointed to find though, that whilst TFS allows you to connect to a remote Git repository, it is a one-time import. You can not then push and pull updates to the origin server.