A 有一个 git 仓库的地址。
我还有一个 open-ssh 格式的私钥。
Android Studio中的git可以使用吗?
我尝试搜索一些信息,但目前没有运气。
感谢您提供任何有用的信息!
Edit. My steps:
1. I put my private key in .ssh folder (Users/user).
2. In Android studio I run: File - Settings - Version Control - Git and put the path to Git executable.
3. Then VCS - Checkout from vesrion control - Git. I put repository address there.
If I continue here, there is:
But I don't have username and password, only key.
If I try:
got the following:
Android Studio 如何知道它应该采用我的私钥而不是标准 id_rsa 文件?
正如 @CodeWizard 提到的,Android Studio 从操作系统获取密钥,因此使用 ssh-add 将密钥添加到 ssh-agent 对我有用。
ssh-add ~/.ssh/id_rsa
更多信息:https://help.github.com/en/articles/generate-a-new-ssh-key-and-adding-it-to-the-ssh-agent
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)