AlxVallejo
AlxVallejo

Reputation: 3238

Where to place my Git origin?

I manage two live websites: One is behind a corporate firewall and the other is a duplicate (stripped down) version hosted on Bluehost. I believe I can use some proxy settings with git to push from behind the firewall so that the Bluehost version will receive those changes. I also have XAMPP and a Linux VM on my laptop so that I can do all the testing there and replicate the firewall settings on my development setup.

Where should I place the "origin" so as to dictate the sync between the two live servers? I don't think I want to use GitHub because I don't want my code to be on another server. Should I push my repositories to the server behind the firewall, the Bluehost server, or even possibly my local machine (although I don't think that's possible).

Thanks in advance.

Upvotes: 4

Views: 125

Answers (1)

VonC
VonC

Reputation: 1328282

It would be preferable to put the origin in your repo behind the firewall, pointing to (referencing) the Bluehost one.
That way, you can pull from Bluehost back to your corporate repo (after you have pushed to Bluehost from any other remote repo).

The idea of pushing anything from behind a corporate firewall to "outside" is generally frowned upon by ITSec team.

Upvotes: 1

Related Questions