Problem:

$ git pull origin master
fatal: unable to access 'http://bbucket.server.xxx/scm/project/repo.git/': The requested URL returned error: 504

Solution:

$ git config --global http.proxy ""

 

Vlastimil Pošmura, 2019