Reputation: 21
I was able to push my changes to AWS with no problem last week, but my computer crashed and I had to set it all up again. Now, pushing to Github works without any problems, but pushing to my EC2 instance (ubuntu) gives this message: fatal: No path specified. See 'man git-pull' for valid url syntax I've tried all kinds of different syntax and am having no luck. I believe this is the correct one though:
git remote set-url aws ssh://[email protected]/home/ubuntu/jade.git/
Does anyone have any ideas on this? I can't find any info online to solve this problem! Grateful for any assistance!
Upvotes: 0
Views: 272
Reputation: 799
According to github manual the command looks like
git remote set-url origin [email protected]:USERNAME/OTHERREPOSITORY.git
Please note there is no ssh:// in front like for https and no trailing slash at jade.git/
I believe you have to run command
git remote set-url aws [email protected]:ubuntu/jade.git
or maybe
git remote set-url aws [email protected]:jade/jade.git
or even
git remote set-url aws [email protected]:ubuntu/jade.git
It depends on how git was configured on EC2
Make sure you have git user on EC2
And then git push aws master
Upvotes: 1