git pull returns "not a git repository" error
5,147
Are you positive of the remote repo location? Should it be /var/www/html?
It appears that you're accessing the relative path.
Author by
Chris
Updated on September 18, 2022Comments
-
Chris over 1 year
I am attempting to pull my code from a remote repo. When I run 'git pull' I get the following message:
$ git pull [email protected]'s password: fatal: 'var/www/html' 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.
Here's my config settings:
$ git config -l core.symlinks=false core.autocrlf=true color.diff=auto color.status=auto color.branch=auto color.interactive=true pack.packsizelimit=2g help.format=html http.sslcainfo=/bin/curl-ca-bundle.crt sendemail.smtpserver=/bin/msmtp.exe diff.astextplain.textconv=astextplain rebase.autosquash=true merge.tool=tortoisemerge gui.recentrepo=C:/Users/Chris/Dev/Projects/html core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false core.ignorecase=true core.hidedotfiles=dotGitOnly [email protected]:var/www/html remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.master.remote=origin branch.master.merge=refs/heads/master user.name=Chris Barnhill user.email=*@gmail.com gui.wmstate=normal gui.geometry=887x427+26+26 171 192
By the way, 'gui.recentrepo' is wrong. My local repo is located in
/Users/Chris/Dev/Projects/Hyperspace/html'
-
northben almost 11 yearstry cloning the repo in a new directory. if it doesn't work, something is foobar with the repo.
-