【发布时间】:2018-05-09 09:01:02
【问题描述】:
谁能帮我解决以下问题?我在詹金斯面对它。
+ git commit -m Added file
[PROD-Backup-NHS 9d4222d] Added file
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 newfile1
+ git push -u origin PROD-Backup-NHS
fatal: could not read Username for 'https://nestle-globe.visualstudio.com':
No such device or address
Build step 'Execute shell' marked build as failure
Finished: FAILURE
使用的其他命令:
git branch -a
git checkout PROD-Backup-NHS
touch newfile1
ls -lrt ${WORKSPACE}
git config --global user.email "user.name@nestle.com"
git config --global user.name "user name"
git add .
git commit -m "Added file"
git push -u origin PROD-Backup-NHS
【问题讨论】:
-
您没有使用 bitbucket,也许更改了标签?仔细检查 VSTS 地址是否正确。
-
是的,我没有使用 bitbucket。我正在使用 VSTS 作为存储库。我检查了 URL,它只有一个正确。
-
尝试通过 ssh 而不是 https 进行身份验证。
-
是的,我尝试在 VSTS 中添加 ssh 密钥,但没有成功。不知道这里有什么问题。
-
git branch -a git checkout PROD-Backup-NHS touch newfile1 ls -lrt ${WORKSPACE} git config --global user.email "user.name@nestle.com" git config --global user.name "用户名" git add . git commit -m "添加的文件" git push -u origin PROD-Backup-NHS
标签: git version-control azure-devops