fatal: does not appear to be a git repository

1

I'm trying to set up a private Git repository on shared hosting via SSH.

I make the whole process of setting the keys etc, and giving git init in the repository but when I put

git remote add deploy ssh://USUARIO@IP-DO-SERVIDOR:2222/public_html/wordpress-studies

When giving git push -u deploy master it appears:

  

fatal: '/ public_html / wordpress-studies' does not appear to be a git   repository fatal: Could not read from remote repository.

What does this mean?

EDIT:

Ok ... what I was missing was that I did not know the difference between the repository and the folder that had the working tree from which I would receive the files from the bare repository. But I still can not solve the problem.

What have I done so far? I created a repository in the folder outside the public_html of the site called "wordpress-studies.git". In it I applied the command "git init --bare"; done that, I created and edited the post-receive file with:

#!/bin/sh
  echo "********************"
  echo "Post receive hook: Updating website"
  echo "********************"

  GIT_WORK_TREE=/public_html/wordpress-studies

I saved and made it executable with "chmod + x hook / post-receive." and     git remote add deploy ssh: //MEUSERVIDOR/home/protodes/wordpress-studies.git

And then ...

git remote add origin [email protected]:rafandrade/wordpressstudies.git

When I give "git push deploy master" it appears here:

$ git push origin master
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 470 bytes | 470.00 KiB/s, done.
Total 4 (delta 1), reused 1 (delta 0)
To bitbucket.org:rafandrade/wordpressstudies.git
ec26746..e1b4c86  master -> master

But when I check the folder does not contain the files that were added in the commit

    
asked by anonymous 14.07.2018 / 22:23

0 answers