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 10:45] – billh | docs:site5:git [2010/04/10 11:26] (current) – billh | ||
---|---|---|---|
Line 5: | Line 5: | ||
* ssh into your account | * ssh into your account | ||
* create a new folder to hold your repo< | * create a new folder to hold your repo< | ||
- | mkdir /var/git/myapp.git && cd /var/git/myapp.git | + | mkdir public_html/git/path/ |
</ | </ | ||
* create a new " | * create a new " | ||
git init --bare | git init --bare | ||
- | + | </ | |
- | or if multiple users will be pushing to this... | + | |
git init --bare shared=group | git init --bare shared=group | ||
</ | </ | ||
- | * exit from your ssh connection | + | |
- | * cd into your local project, add the remote, and push< | + | |
- | git remote add origin | + | * cd into your local project, |
+ | git remote add origin | ||
+ | </ | ||
+ | * ::!:: 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 | git push origin master | ||
</ | </ | ||
* if you want this to be known as something other than origin, change origin as desired | * 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 clone ===== | + | ===== developer |
- | FIXME - this wasn't working yet | + | |
< | < | ||
- | git clone ssh://remoteuser@remotehost.com: | + | git clone remoteuser@remotehost.com: |
</ | </ | ||
- | ===== public clone ===== | + | ===== public |
Make a subdomain called " | Make a subdomain called " | ||
< | < | ||
Line 34: | Line 39: | ||
</ | </ | ||
+ | ===== External Links ===== | ||
+ | * http:// |