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

前端 未结 2 704
面向向阳花
面向向阳花 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: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
    

提交回复
热议问题