Authentication failed for Azure Git

后端 未结 18 1234
攒了一身酷
攒了一身酷 2020-12-31 03:19

I\'m trying to clone my webapp in Azure.

When I run git clone https://username@appname.scm.azurewebsites.net:443/appname.git the terminal asks me for my

18条回答
  •  太阳男子
    2020-12-31 04:07

    Accepted answer did not work for me but this worked.

    1. Check your set Azure URL with

      git config --get remote..url
      
    2. Reset azure url with following command

      git remote set-url 
      https://@[_].scm.azurewebsites.net:443/.git
      
    3. Try pushing your code using

      git push 
      
    4. It will open windows authentication screen which says to enter credential to connect to https://@[_].scm.azurewebsites.net/.git

    5. Cancel this window. It will prompt the basic credential window which says to enter credential to connect to https://@[_].scm.azurewebsites.net:433/.git

    Enter in your credential and it works.

提交回复
热议问题