We have an internal hosted instance of Team Foundation Server 2013 with many projects that use GIT source control. If I use Visual Studio 2015, I am able to clone, push, pull, etc. with no problem. However when I try to interact with the server using the git command line, git is unable to communicate with the server. For example, when I try to clone a repository (I am 100% positive that the url is valid), it errors. Here is the output
C:\Projects\>git clone http://tfs_server_name:8080/tfs/CollectionName/_git/SomeProject
Cloning into 'SomeProject'...
fatal: repository 'http://tfs_server_name:8080/tfs/CollectionName/_git/SomeProject/' not found
git config --global credential.tfs_server_name.NameOfOurDomain.lcl.integrated true
Do you have any proxy settings set? Check for global git settings for http.proxy and https.proxy in the .gitconfig file in your profile. Also, verify that you don't have any environment variables set pointing to a proxy server (HTTP_PROXY and HTTPS_PROXY).
Most proxy servers do not allow internal access, so it is possible that, if you have git configured to point to a proxy, the TFS server actually can't be seen by the proxy server and therefore git can't see the repository.