1

I have a git project hosted on a TFS server (ruling out sshprotocols). After setting git config --global sslVerify false I was able to git pull and git clone, but over a VPN , I was unable to git push.

To be more explicit, git clone https://tfs.example.com/project.git clones the repository without problem, but ping tfs.example.com times out with no response.

I have used the answer to this question to make git aware of my proxy settings, but even with this set, git push still terminates with

fatal: unable to access 'https://tfs.example.com/project': Could not resolve host: tfs.example.com

Other perhaps relevant information: git --version 1.9.1, Ubuntu 14.04, running through an Oracle VMWare virtual box, hosted on Windows 7.

Any suggestions? In any case, I'd be happy just to figure out why there is an asymmetry between git push and git pull.

Community
  • 1
  • 1
user14717
  • 4,757
  • 2
  • 44
  • 68

1 Answers1

0

Try to change the protocol to git and then clone/pull/push.

HTTPS is a little bit different then http and git. you can read more about the differences here

Using ssh (or git://...) will ensure that you using the ssh keys on your machine and might solve your problems.

Using HTTP/HTTPS you might need to use your username password in order to push changes, while with git/ssh you don't need to do so.

It looks like you are able to pull/fetch and you get a read-only project without the ability to push back changes. try switching to git/ssh and again it should solve this issue.

CodeWizard
  • 128,036
  • 21
  • 144
  • 167