ubuntu - How to connect to git on a VPS server? -
this real beginner's question, drowning bit in huge sea of tutorials seem missing 1 or 2 vital steps...
i have ubuntu vps server ssh access. got ssh access working key pair don't have type password every time connect.
i have installed git on vps, , have created empty git repository in empty 'test1' folder using
git init --bare my-project.git
i have created second folder named 'test2' repository using
git init
now set 1 of these folders remote local project, can use git push
place files on server (instead of using ftp put files on server).
i can't seem find proper procedure push new repo. have added remote local project using:
git remote add origin ssh://myname@100.00.000.000/test1/my-project.git git remote add origin ssh://myname@100.00.000.000:/test2/
i have tried cloning remote
git clone ssh://myname@100.00.000.000/test1/
when pushing or cloning error:
'not valid git repository - make sure valid repository , have access permissions'
what step missing here?
watch out leading /
. interpreted root of filesystem, not want:
git clone ssh://myname@100.00.000.000:test1/
also ssh
default, doing myname@100.00.000.000:test1/
should enough.
Comments
Post a Comment