2

I just started using Git and now I'm experiencing a problem.

I have a production server and a local development repository. All files on my local master branch should be on the production server. So after every change on the master branch I push to the production server. First time, all files should be pushed obviously.

I created a repository on the server and got this message Initialized empty Git repository in /var/www/my_really_cool_project/.git/. Then I added the remote on the local machine, but whenever pushing it logs '181.910.139.164/var/wwww/my_really_cool_project/.git' does not appear to be a git repository. I probably made a mistake in the URL but I have no idea what the problem is. Connection via SSH goes via port 4938.

Is anyone able to tell me what the problem is here? I'm really stuck on this.

This is the output of git remote show origin:

fatal: '181.910.139.164/var/wwww/my_really_cool_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.
  • It appears you're missing a colon (:) between the host part and the path part in the URL. Please include the output of git remote show origin in your question to verify this and I'll be happy to provide an answer. – gertvdijk Jan 14 '14 at 14:49
  • I added it. It is the some output as git push origin master. – yoeriboven Jan 14 '14 at 15:01
2

gertvdijk's suggestion was right.

Instead of 181.910.139.164/var/wwww/my_really_cool_project/.git I should have used 181.910.139.164:/var/wwww/my_really_cool_project/.git. As you can see I added a colon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.