git - 可以使用 Android Studio 克隆 TFS 项目

标签 git tfs android-studio azure-devops

我刚刚在 https://[account].visualstudio.com 上设置了一个支持 Git 的新 TFS 项目,并安装了最新版本的 Android Studio。

我正在尝试通过 Android studio 克隆新项目:

VCS -> Checkout from Version Control -> Git

然后我输入与上面相同的网址,https://[account].visualstudio.comhttps://[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/

相关文章:

android - 将 Android Studio 3.4 更新到 3.5.1 时出现更新错误

r - 尝试安装私有(private) Gitlab R 包时由对等方重置连接

git - 交互式 rebase 和普通 rebase 有什么区别?

Android使用按钮和对话框复选框进行多项选择,并在 ListView 中显示所选项目而不是按钮

php - 在TFS中 checkin 时检索文件的MD5

tfs - 通过 API 自定义 TFS 查询

Android Studio 无法解析任何符号

git - 远程 ssh session 期间的本地 git 配置

git - 禁用 git pull 的密码提示,但不适用于推送

git - Jenkins 不会连接到 TFS-GIT 存储库