Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git shows the error "does not appear to be a git repository fatal: The remote end hung up unexpectedly"

Tags:

git

I just installed GIT in my CentOS Linux server and configured it. When I create a new repository using git init it works fine and gives output of the command also.
But whenever I try to clone the remote repository into my local computer folder it gives the following message:

fatal: '/public_html/repositories/git-test/.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Has anyone come across this issue, what could be the reason?

like image 855
user493313 Avatar asked Nov 01 '10 08:11

user493313


People also ask

How do I fix the fatal not a git repository error?

To do so, you need to navigate to the correct folder and then run the command git init , which will create a new empty Git repository or reinitialize an existing one.

How do you fix fatal origin does not appear to be a git repository?

Note: The “fatal: 'origin' does not appear to be a git repository” error occurs when you try to push code to a remote Git repository without telling Git the exact location of the remote repository. To solve this error, use the git remote add command to add a remote to your project.

How do you fix fatal could not read from remote repository please make sure you have the correct access rights and the repository exists?

The Git “fatal: Could not read from remote repository” error occurs when there is an issue authenticating with a Git repository. This is common if you have incorrectly set up SSH authentication. To solve this error, make sure your SSH key is in your keychain and you connecting to a repository using the correct URL.


1 Answers

Your path may be incomplete. Perhaps your full path should be something more like this: /home/USER/public_html/repositories/git-test.

like image 69
kanaka Avatar answered Oct 26 '22 08:10

kanaka