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?
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:
This example assumes the following: