does not appear to be a git repository
I am trying to set-up a production push to my server:
Remote Server:
In my public_html
dir I have created a folder called Template.git
In my Template.git/hooks/post-receive
file I have added:
#!/bin/sh
GIT_WORK_TREE=/home/USER/public_html/Template.git/git checkout -f
My Template.git
config file has the following in it:
[core]
repositoryformatversion = 0
filemode = true
bare = true`
Local Computer:
I have added a production setting:
remote add production USER@DOMAIN:Template.git
When I run the following:
git push pr开发者_运维知识库oduction +master:refs/heads/master
I get the following:
stdin: is not a tty
fatal: 'Template.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
How do I fix the above error?
精彩评论