Configure git on a shared hosting

Asked

Viewed 1,568 times

1

I have a shared hosting at hostgator and in the description of the plans I saw which git client is accepted. I contacted Hostgator support to better understand the details of the git client they speak, here’s the answer:

"The difference between Git server and Git Client lies in functionality, where a Git client is just a user using external servers.

Git server, on the other hand, would be used to create a repository and provide it to other users, as it is not allowed to use shared servers as a repository, it is not possible to perform the procedure on P,M, Business,Plus and Resell plans."

The point is, I have a private repository in bitbucket, I can configure the server so that by pushing on my local machine, automatically changes are saved to the repository and replicated on the site?

  • I don’t understand your goal! You have the repository in Bitbucket... And on the servers where they run your application you want to set up Git clients to download the code?

1 answer

2

Hello, comrade. I had the same problem when I was working with gitlab and using Heroku. I haven’t seen any way to solve this if not: -Create or synchronize your project with the remote repository (in your case [email protected]:public_html/project-name) -in this case will have two development-origin and remote repository branches.

See this article, shows how to do this in minimal detail: http://www.arlocarreon.com/blog/git/push-git-repo-into-shared-hosting-account-like-hostgator/

or that: https://medium.com/29-degrees/setup-a-git-repository-on-a-shared-hostgator-account-7a7e306ef66f

I hope I’ve helped...

  • Elton, would you please explain the procedures to your response? Here we prefer that the answers do not depend on external links, which may fail to work. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.