Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (19.7k points)

Why am I getting this error when my git repository url is correct?

fatal: 'git@skarp.beanstalkapp.com/gittest.git' does not appear to be a git repository // fatal: The remote end hung up unexpectedly

EDIT:

fatal: '[email protected]/gittest.git' does not appear to be a git repository

fatal: The remote end hung up unexpectedly

1 Answer

+1 vote
by (62.9k points)

The correct scp-style way of specifying a repository is shown below:

[[email protected]]host.xz:path/to/repo.git/

You should use instead of the URL:

[email protected]:/gittest.git

i.e. in the URL, you are using, you missed out the : (colon)

To update the URL for origin you may do:

git remote set-url origin [email protected]:/gittest.git

by (19.7k points)
Thanks, it helped! But then why didn't I get any error when I added remote
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...