简体   繁体   中英

Use AWS git server on Sourcetree

I have build myself a git server using Amazon Web Services (AWS). 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". 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:// .

Try ,as said, without the ssh:// and in the end modify to :~/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. Run on terminal:

ssh-add path/to/privateEC2key.pem

Now you will be able to clone your project from your amazon machine. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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