3

In order to publish what I need, my server service gave me a git repository in which I push my files.

The issue is: I can push to GitHub and BitBucket without issues from my workplace, but this server-git address is blocked. Unblocking it is not an option.

I have an exact copy of that repo in private BitBucket, so when I need to do maintenance I do it at work, push to BitBucket, get home, pull, copy to the other repo, push to the server. Sometimes I have to wait all day to push my changes to production, at home.

Is there a way to push to BitBucket (or GitHub, or else) and, in the background, some process push the data to my other repo?

Is there a way to do this?

Instead of: WORK -> SERVER

I'd like to: WORK -> (SOME SERVICE) -> SERVER

angelod1as
  • 95
  • 1
  • 11
  • 1
    Possible duplicate of [Make Github push to a remote server when it receives updates](https://stackoverflow.com/questions/15196304/make-github-push-to-a-remote-server-when-it-receives-updates) – Adil B Feb 03 '19 at 01:18
  • 1
    @AdilB it looks like a similar question but different variables. In my case, I don't have access to the remote server entirely to issue commands like git pull from another repo. I dunno if I'm being entirely clear, the nomenclature is confusing. – angelod1as Feb 03 '19 at 17:28
  • Thanks for the clarification. Are you only able to push to the remote server, but unable to tell it to pull from elsewhere? – Adil B Feb 04 '19 at 17:58

0 Answers0