Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Sourcetree上使用AWS git服务器_Git_Amazon Web Services_Ssh_Atlassian Sourcetree - Fatal编程技术网

在Sourcetree上使用AWS git服务器

在Sourcetree上使用AWS git服务器,git,amazon-web-services,ssh,atlassian-sourcetree,Git,Amazon Web Services,Ssh,Atlassian Sourcetree,我已经使用AmazonWebServices(AWS)为自己构建了一个git服务器。我能够在终端下用下面的命令毫无问题地签出存储库 git init && git remote add origin git@ec2-12-345-678-910:my-project.git 但是,如果我尝试使用SourceTree,我会一直收到警告“这不是有效的路径/URL警告”。有人知道怎么了吗 我几乎被卡住了。如果您有任何意见,我将不胜感激 顺便说一下,我也试着把git@...在源路径

我已经使用AmazonWebServices(AWS)为自己构建了一个git服务器。我能够在终端下用下面的命令毫无问题地签出存储库

git init && git remote add origin git@ec2-12-345-678-910:my-project.git
但是,如果我尝试使用SourceTree,我会一直收到警告“这不是有效的路径/URL警告”。有人知道怎么了吗

我几乎被卡住了。如果您有任何意见,我将不胜感激



顺便说一下,我也试着把
git@...
源路径/URL
中,不带
ssh://

如前所述,尝试不使用ssh://并最终修改为:~/path/to/folder/my-project.git

例如:

ubuntu@ec2-213-23-32.us-west-1.compute.amazonaws.com:~/path/to/folder/my-project/.git
不要忘记添加您的EC2标识,否则您将获得“权限被拒绝(公钥)”错误。在终端上运行:

ssh-add path/to/privateEC2key.pem

现在,您可以从amazon计算机克隆项目了。:)

您只需添加以
git@ec2-…
。其余的命令需要创建本地git repo并添加远程。Sourcetree为你做这件事我在截屏时犯了一个错误。我会修改它。谢谢你指出这一点。顺便问一下,你解决了吗?不,我想那个小水桶是个更好的选择。你可以试试看。它也是私人的。从他们开始我就一直在用它。