This article is pretty good for getting set up, but an important thing to note is this innocent seeming sentence:
"We are going to do this work as the git user so that we don't have to fiddle with permissions when we are done."
Later, when you don't have a shell as the git user, you don't have that option. So if you create a git repo later as any other user, this is the "fiddling" you need to do:
sudo chown -R git project
Here's the error:
~/projects/project (master) $ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 208 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
error: unable to create temporary sha1 filename ./objects/a7: Permission denied
fatal: failed to write object
error: unpack failed: unpacker exited with error code
To ssh://git@IP/home/git/project/.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://git@IP/home/git/project/.git'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment