Usage of Git on Webfaction hosting
|
1.
|
SSH into your Webfaction account
|
|
2.
|
Switch to application's
repos sub directory. cd ~/webapps/git/repos |
|
3.
|
Create the repo.
git init --bare {repo}.git {repo} should be the name of the new repository. The .git extension is required for all repositories! |
|
4.
|
Switch to the new repo's directory.
cd {repo}.git Where {repo} is the name of your newly created repository |
|
5.
|
Enable HTTP push. While in the newly created repo's directory, run:
git config http.receivepack true |
.git extension is required on all repository names|
Type
|
Git Command
|
|
Local
|
git clone /home/username/webapps/app/repos/proj.git |
|
HTTP (Anon)
|
git clone http://domain/URL_PATH/proj.git` |
|
HTTP (Auth)
|
|
|
SSH
|
git clone username@username.webfactional.com:/home/username/webapps/app/repos/proj.git |
|
NOTE
|
Links in the above commands do not work
|
git config http.postBuffer {{bytes}} where bytes is the maximum number of bytes permitted.git config http.postBuffer 524288000
|
1.
|
Read the warning note below!!!
|
|
2.
|
SSH into your Webfaction account
|
|
3.
|
Enter your repos sub-directory
cd ~/webapps/git/repos |
|
4.
|
Execute
rm -r {{repo}}.git to remove the repository {{repo}}.git |
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.