DEV Community

Discussion on: How to setup remote repo in shared hosting

Collapse
 
rhymes profile image
rhymes

Is there any public documentation I might look at?

What's the hosting server?

Thread Thread
 
ian profile image
Ian

It is an own server running froxlor.
The user has SSH access and a domain pointing at /var/customers/webs/USERNAME
In his documentroot (/var/customers/webs/USERNAME) there is a .git folder.

Thread Thread
 
rhymes profile image
rhymes

Ah ok! So you need git + ssh.

Assuming you have the rights to access that folder, it should be something like this:

git remote add origin ssh://username@host/var/customers/webs/username/folder.git

Thread Thread
 
ian profile image
Ian

Works, thank you!