我刚刚在 https://[account].visualstudio.com
上设置了一个支持 Git 的新 TFS 项目,并安装了最新版本的 Android Studio。
我正在尝试通过 Android studio 克隆新项目:
VCS -> Checkout from Version Control -> Git
然后我输入与上面相同的网址,https://[account].visualstudio.com
和 https://[account].visualstudio.com/DefaultCollection/_git/[projectname]
,作为 git repo url 并输入适当的用户名和密码,但收到错误:Repository test
failed。
我收到此错误是因为我错误地完成了该过程,还是因为无法从 Android Studio 克隆 TFS 项目?
我知道 Eclipse 可以实现这一点,但我真的很喜欢新的 Android Studio,并希望使用它。
最佳答案
问题是我没有设置辅助凭据。来自 Visual Studio 网站:
Note: To clone and use this repository from Git tools outside Visual Studio, you need to ensure alternate credentials are enabled in the Profile dialog.
一旦我添加,我就能够毫无问题地克隆存储库。
关于git - 可以使用 Android Studio 克隆 TFS 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18039119/