严重:无法读取visualstudio.com的用户名未配置设备 [英] fatal: could not read Username for visualstudio.com Device not configured
问题描述
尝试通过sourcetree推送到我的远程仓库时出现此错误:
I get this error when trying to push to my remote repo via sourcetree:
按 https://xxx.visualstudio.com/DefaultCollection/_git/xxx 错误:git-credential-sourcetree死于信号5致命:无法 读取" https://xxx.visualstudio.com "的用户名:设备 未配置
Pushing to https://xxx.visualstudio.com/DefaultCollection/_git/xxx error: git-credential-sourcetree died of signal 5 fatal: could not read Username for 'https://xxx.visualstudio.com': Device not configured
如何在sourcetree中进行配置?
How do I configure this in sourcetree?
我有个人访问令牌,但是我不知道如何将其提供给sourcetree.
I have a personal access token but I don't know how to give it to sourcetree.
我在Mac上.
推荐答案
我正在使用VSTS,并且在升级sourcetree后遇到此问题.我尝试使用gitflow完成发行,然后错误消息是:
I am using VSTS and encountered this problem after upgrade sourcetree. I tried to use gitflow to finish release, then the error message is:
fatal: could not read Username for 'https://xxxx.visualstudio.com': Device not configured
Fatal: Could not fetch release/xxxx from origin.
我通过以下步骤解决了这个问题:
I solved this problem by following steps:
- 在我的情况下,将我的系统git更新到最新版本2.17.1.请参考 https://www.atlassian.com/git/tutorials/install-git
- 根据
- Update my system git to newest version 2.17.1 in my case. Please refer to https://www.atlassian.com/git/tutorials/install-git
- Set up git-credential-osxkeychain helper according to https://www.atlassian.com/git/tutorials/install-git#install-the-git-credential-osx
- git clone same repository which I have problem.
- Do gitflow finish release again, it works without any error message.
希望这些步骤可以帮助某人遇到我同样的问题.
Hope these steps can help someone has same problem with me.
这篇关于严重:无法读取visualstudio.com的用户名未配置设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!