Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:site5:git [2010/04/10 02:24] – billh | docs:site5:git [2010/04/10 11:26] (current) – billh | ||
---|---|---|---|
Line 2: | Line 2: | ||
You need to set up [[ssh_access]] to be able to act as the developer on a project. | You need to set up [[ssh_access]] to be able to act as the developer on a project. | ||
- | ===== developer clone ===== | + | ====== set up a bare git repo ====== |
- | FIXME - this wasn' | + | * ssh into your account |
+ | * create a new folder to hold your repo< | ||
+ | mkdir public_html/ | ||
+ | </ | ||
+ | * create a new " | ||
+ | git init --bare | ||
+ | </ | ||
+ | * if multiple users will be pushing to this...< | ||
+ | git init --bare shared=group | ||
+ | </ | ||
+ | * since this will be served over http, you need to set up a post commit hook for [[update-server-info]] to run or else the public will not be able to clone your repo; if all users were using git:// or ssh://, | ||
+ | * exit from your remote ssh connection | ||
+ | * cd into your local project, and add the remote< | ||
+ | git remote add origin remoteuser@remotehost.com: | ||
+ | </ | ||
+ | * ::!:: I'm not sure why, but specifying this with ssh:// protocol did not work, but leaving it off works fine | ||
+ | * push your local master to the remote repo< | ||
+ | git push origin master | ||
+ | </ | ||
+ | * if you want this to be known as something other than origin, change origin as desired | ||
+ | * even though the post commit hook is set up, you should run this once manually inside the remote repo directory< | ||
+ | git update-server-info | ||
+ | </ | ||
+ | * you may also want to set up [[gitweb]] on your account | ||
+ | |||
+ | ===== developer user clone ===== | ||
< | < | ||
- | git clone ssh://remoteuser@remotehost.com: | + | git clone remoteuser@remotehost.com: |
</ | </ | ||
- | ===== public clone ===== | + | ===== public |
Make a subdomain called " | Make a subdomain called " | ||
< | < | ||
Line 14: | Line 39: | ||
</ | </ | ||
+ | ===== External Links ===== | ||
+ | * http:// |