如何使用Android Studio克隆远程git代码库?

25

在Eclipse中,导入命令可以接受URI,但在Android Studio中,导入似乎只接受我的硬盘上目录的位置。我应该如何使用Android Studio克隆我的远程存储库?

1个回答

52
你需要前往 VCS > 从版本控制检出 > Git/SVN/Mercurial

输入图像描述


1
太好了-这正是我想要的。看起来没有像Eclipse那样的内部软件下载,所以我不得不从git-scm.com安装git才能使该命令工作。谢谢! - Ethan_AI
有没有指定凭据的方法? - Ryhan
这在GITHUB上不起作用,没有办法指定凭据。 - Davide Piras
1
@DavidePiras 嗯,它对我有效。我目前正在使用它与我的Github帐户一起使用。这是弹出窗口,对我来说显示如下:http://i.imgur.com/VPx3zhK.png - Ahmad
如果您使用SSH与GitHub,则此方法无法正常工作,我不知道如何使其正常工作。 - Felipe
1
实际上确实如此- https://www.londonappdeveloper.com/how-to-push-to-a-remote-git-repository-over-ssh-with-privatepublic-key-authentication-using-android-studio/ - VinSmile

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接