我正在使用Azure Pipelines PowerShell任务构建时,尝试将
develop
分支合并到master
分支。但是在执行git push
命令时,我遇到了以下错误:代码存储库是“Azure Repos Git”。Fatal: Could not read password for 'https://OrganizationName@dev.azure.com': terminal prompts disabled
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后,我创建了个人访问令牌(Personal Access Token),并将推送命令修改为git push https://PAT@dev.azure.com/OrganizationName
,但它还是无法工作。
如果您找到此问题的解决方案,请告知我。