How do I create a git repo on my shared hostgator? Got SSH access by the way.
The free/Individual version allows for up to three "collaborators". That should be exactly what you're looking for. The team versions, on the other hand, allow for multiple collaborators AND "user management". If you wanted finer control over what collaborators can and cannot do, you'd need a team version.
Once you've logged in, set up a directory on Hostgator where your Git server is going to live. eg. This initialises your Git server in the mywebsite. git directory.
Assuming Git is installed...
git init --bare /path/to/repo
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 ~/foo
locally):
git clone --bare ~/foo ~/foo.git
cd ~/foo.git
git --bare update-server-info
Then, copy the resulting foo.git
directory into your webserver's public_html
directory. 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With