Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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:

[user@]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

does not appear to be a git repository-fatal: does not appear to be a git repository
Intellipaat-community
by (19.7k points)
Thanks, it helped! But then why didn't I get any error when I added remote

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...