I followed this tutorial: on setting up a git deployment process to an ec2
instance.
I carefully went through all the steps of ssh'ing into the ec2
machine with a ~/.ssh/
host in the config file. Creating the bare git repo. Adding the post-receive
hook script and so on.
Locally, I make some changes, commit.
Then I added the ec2
repo with git remote add deploy ec2:/home/ec2-user/ab-site
(ab-site is the bare git repo I just initialized -- and ec2
is the ssh alias I set up locally in the ~/.ssh/config
file).
Yet When I go to push with git push deploy +master:refs/heads/master
I get a bunch of errors.
warning: core.bare and core.worktree do not make sense remote:
warning: core.bare and core.worktree do not make sense remote: error:
insufficient permission for adding an object to repository database
./objects remote: fatal: failed to write object error: unpack failed:
unpack-objects abnormal exit
So I'm curious what I should look at next to fix this.