| The message from command line git is: {{ fatal: '//xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.git' does not appear to be a git repository}} If you're accessing the remote git repository through https or ssh, that might indicate that the remote git repository is temporarily inaccessible on that remote server has some issue with its file system. In my case, I can generate that message when I use a a valid ssh private key credential to clone a repository which does not exist on a remote server which I host myself. My example looks like this:
mwaite@mark-pc2:~/git/jenkins/git-plugin$ git clone mwa...@git.markwaite.net:git/bare/jenkins/not-really-a-repository.git
Cloning into 'not-really-a-repository'...
fatal: 'git/bare/jenkins/not-really-a-repository.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
However, when I attempt to use a valid ssh private key to clone a non-existent repository from github.com, I don't see that exact message. I see:
mwaite@mark-pc2:~/git/jenkins/git-plugin$ git clone g...@github.com:MarkEWaite/not-really-a-repository.git
Cloning into 'not-really-a-repository'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Based on that, I would guess that you're cloning a repository from a server that you're hosting. That internal server is temporarily unable to detect the repository, especially during times of high load (concurrent clones). You could test that theory by running multiple git clone commands on different machines at the same time. If you're accessing the remote git repository through file system access (for example through an NFS mount or a CIFS mount), that message might indicate that command line git was unable to read the directory it needed. It might also mean that it was unable to find a specific file or to acquire a lock on a specific file. If you're accessing a git repository through a remote file access protocol, you should reconsider that choice and use the remote protocols that are included with command line git (http/https and ssh). |