I'm following git's doc to cretae a repository on a remote server on the local pc :
$ git clone --bare my_project my_project.git I've copied the repository on the server
$ scp -r my_project.git myuser@myip:/opt/git but if I try to clone
git clone myuser@myip:/opt/git/my_project.git I get
fatal: 'opt/git/my_project.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. I though that it was a permission problem ,but if I connect with ssh myuser@myip I have no problem to create files o do anything ,the folder belongs to myuser.
scpinstead ofgit pushis a bit odd way to go about it). But if you look at your error message, not the missing leading/. For (some reason unclear to me)gitis look foropt/git/my_project.gitrelative to home ofmyuserand not/opt/git/my_project.gitwhere it is. In other words, I must be missing a bit. Version? Perhaps try to prefixmyuserwithssh://scheme in case something in the name was causing trouble?