I'm working with setting up a remote Git repository via my WebFaction account and am having difficulties managing multiple users.
I've been following the Git reference instructions and have set up the
Here's how I've been trying to do this thus far. Please let me know if I'm misunderstanding something crucial about how this should work:
• I added the user password via
• I created a new folder on the local computer and attempted to clone the remote WebFaction repository via SSH using the following command (edited to obscure account information):
• I'm then prompted for the password I created for the
• This invariably fails with the following message:
This is confusing because I know the repository and file structure exist properly on the WebFaction server since I have no trouble performing common Git actions via my default user account. My guess is that I'm not properly accessing the repository for the user account but can't figure out what the correct method would be (I've tried countless variations with no success).
Any advice would be greatly appreciated!
This question is marked "community wiki".
asked Apr 05 '11 at 03:39
The problem seems to be that
looks for the refs file in /home/otheraccount/webapps/git/repos/myrepository.git/info/refs which obviously does not exist.
What you need to do is use is: git clone email@example.com:/home/primaryuser/webapps/git/repos/myrepository.git
but for that you would need to give permissions to the other use using:
Hope that helps!
answered Apr 05 '11 at 04:11
Thanks! After adding a user via the control panel (with a shell), and a few setfacls:
...I was able to successfully clone a repo via "git clone firstname.lastname@example.org:/home/YOURUSER/webapps/git/repos/myrepo.git"
answered Sep 04 '12 at 15:19