git pull gives error: 401 Authorization Required while accessing https://git.foo.com/bar.git

前端 未结 2 656
面向向阳花
面向向阳花 2021-02-12 11:53

My macbook pro is able to clone/push/pull from the company git server. My cent 6.3 vm gets a 401 error

git clone https://git.acme.com/git/torque-setup
\"error:          


        
相关标签:
2条回答
  • 2021-02-12 12:11

    I would update the git version: 1.7.10 (or thereabouts) had authentication improvements. It's possible that these improvements were only related to proxies though -- I've forgotten the details already.

    Speaking of proxies, you could double-check git config: You wouldn't have proxies or anything like that configured on the macbook but not on the cent machine?

    0 讨论(0)
  • 2021-02-12 12:29

    I had the same error:

    error: The requested URL returned error: 401 while accessing 
    fatal: HTTP request failed
    

    To fix it, I did the following:

    check git version: 1.7.1
    update git
    
    0 讨论(0)
提交回复
热议问题