How do I create a git repo on my shared hostgator?
Got SSH access by the way.
How do I create a git repo on my shared hostgator? Got SSH access
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming Git is installed…
If Git isn’t installed, you won’t be able to push directly to the hosted repository, but you can make a snapshot available by doing the following (from here):
First, on your local machine, run these commands (this assumes your repo is at
~/foolocally):Then, copy the resulting
foo.gitdirectory into your webserver’spublic_htmldirectory. After doing so, you should be able to pull from the http://yourserver.com/you/foo.git or the like. Any time you want to update the snapshot, you’d need to repeat the above steps.