I've been working on a project locally using git and laravel. I've finally decided to add a bare repo to our server in order to push the changes and automate deployment.
I'm sure I'm doing something wrong as I'm green to using git. When I do a push I get the following error:
stdin: is not a tty
bash: git-receive-pack: command not found
fatal: Could not read from remote repository
Please make sure you have the correct access rights and the repository exists.
Here's the process I used - keep in mind the project repository was initially cloned from laravel and I created my own master branch and a few pushes exist. I also have all ssh logging setup already.
- logged in via ssh
- created directory:
mkdir public_html.git
- changed directory:
cd public_html.git
- created the repo:
git init --bare
- added a post-receive hook - which i verified works in a test project
- moved back to local machine
- added a new remote:
git remote add www user@0.0.0.0:public_html.git
- made a new branch:
git checkout -b develop
- attempted to push:
git push www
Most of the research from looking into this mentions checking the git/config file, but all of that seems to be correct.