【发布时间】:2021-10-21 19:57:04
【问题描述】:
在使用 Azure Pipelines PowerShell 任务构建时,我正在尝试将 develop 分支合并到 master 分支。
但是在执行命令git push时,我收到了这个错误:
致命:无法读取密码 'https://OrganizationName@dev.azure.com':终端提示已禁用
代码存储库是“Azure Repos Git”。
git checkout -b master
git config --global user.email "xxxxxxx@xxxx.xxx"
git config --global user.name "xxxxx"
git merge origin/develop
git push origin master
在引用了一些 URL 后,我创建了个人访问令牌,并将推送命令修改为 git push https://PAT@dev.azure.com/OrganizationName,但仍然无法正常工作。
如果您找到此问题的解决方案,请告诉我。
【问题讨论】:
-
PAT 是您的解决方案,什么是“它也不起作用”?你得到了什么?
-
得到错误为“致命:无法从重定向更新 url 基础:”
-
你需要在url中追加团队项目和git repo
标签: git azure-devops azure-pipelines azure-powershell azure-pipelines-build-task