Saturday, January 14, 2012

How to create in git a remote repo from a local one?

To create a remote repo from a local one follow the steps:

L: git init
L: git commit -a -m "Message"
R: adduser repo
R: cd /home/repo
R: git init --bare
R: chmod -R g+w repo
R: chown -R repo:users repo
L: git push ssh://remote_server/home/repo master

I'm not sure how correct it is and if the access rights need to be like that but it works:).

No comments: