简体   繁体   English

在Sourcetree上使用AWS git服务器

[英]Use AWS git server on Sourcetree

I have build myself a git server using Amazon Web Services (AWS). 我已经使用Amazon Web Services(AWS)构建了自己的git服务器。 And I am able to checkout the repository under terminal with following command with no problem. 而且我可以使用以下命令在终端下签出存储库,没有问题。

git init && git remote add origin git@ec2-12-345-678-910:my-project.git

However, if I try it with SourceTree, I keep having the warning"This is not a valid path/URL warning". 但是,如果我使用SourceTree进行尝试,则会继续收到警告“这不是有效的路径/ URL警告”。 Anybody know what's wrong? 有人知道怎么了吗?

在此处输入图片说明

I am pretty much stuck. 我几乎被困住了。 I will appreciated it if you have any comments. 如果您有任何意见,我将不胜感激。


By the way, I also tried putting git@... in Source Path / URL without ssh:// . 顺便说一句,我还尝试将git@...放在不带ssh:// Source Path / URL

Try ,as said, without the ssh:// and in the end modify to :~/path/to/folder/my-project.git 尝试,如前所述,不使用ssh://,最后修改为:〜/ path / to / folder / my-project.git

example: 例:

ubuntu@ec2-213-23-32.us-west-1.compute.amazonaws.com:~/path/to/folder/my-project/.git

Don't forget to add your EC2 identity, otherwise you will get the “Permission denied (publickey).” error. 不要忘记添加您的EC2身份,否则您将收到“权限被拒绝(公钥)”错误。 Run on terminal: 在终端上运行:

ssh-add path/to/privateEC2key.pem

Now you will be able to clone your project from your amazon machine. 现在,您将能够从亚马逊计算机上克隆您的项目。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM