Cannot clone git from Azure DevOps using PAT

后端 未结 8 1755
礼貌的吻别
礼貌的吻别 2020-12-15 07:11

I cannot clone a simple repository from Azure DevOps. OS: Ubuntu 18.10

I do this:

  • Got to Azure DevOps
  • Click on the top right corner on my use
8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 07:26

    I was having the same problem and got it solved using HTTPS only.

    I figured out that I had to use the terminal only rather than using any "GUI shortcuts" dev.azure provides since they are meant for a git-credential-manager which works fine on windows but is broken for Ubuntu.

    Apparently, the dev.azure git repository has a different credentials (which you need to set up) rather than your Microsoft account credential.

    Let's say my Microsoft account username is johndoe@outlook.com, with its password Jd1986

    This credential will NOT work if you try for git cloning, as you need to generate git credential for your project and then use it.

    You can generate git credential from here,

    After this, Save it and use the set credential.

    Go to your terminal, and use the HTTP url for git clone and enter the given credential. This worked for me.

提交回复
热议问题