This is an old revision of the document!
git (on Site5)
You need to set up ssh_access to be able to act as the developer on a project.
set up a bare git repo
- ssh into your account
- create a new folder to hold your repo
mkdir /var/git/myapp.git && cd /var/git/myapp.git
- create a new “bare” repo
git init --bare or if multiple users will be pushing to this... git init --bare shared=group
- exit from your ssh connection
- cd into your local project, add the remote, and push
git remote add origin ssh://myserver.com/var/git/myapp.git git push origin master
- if you want this to be known as something other than origin, change origin as desired
developer clone
- this wasn't working yet
git clone ssh://remoteuser@remotehost.com:path/to/repo.git localdest
public clone
Make a subdomain called “git” in SiteAdmin first.
git clone http://git.remotehost.com/Project.git