2
I have a centOS VPS and I have install git.
However, I want to set up a git repo on a subdomain on one of the domains hosted on my vps in order so I can push there for testing.
How do I do this?
2
I have a centOS VPS and I have install git.
However, I want to set up a git repo on a subdomain on one of the domains hosted on my vps in order so I can push there for testing.
How do I do this?
0
Two options are to use the simple ssh setup from the git book here or gitolite. I prefer gitolite though since you would then have fine grained control over permissions. There are other protocols that you could use as well, but ssh has been in my experience the easiest to set up.
Once you have your subdomain pointing at your VPS ip you can clone and push to it directly via the git ssh protocol. For example:
git clone git@git.website.com:my_repo
This example assumes the following: