gitbitbucketacquia

How to pull from an origin and merger to a different one?


I am following this Acquia tutorial "Using Acquia Cloud with a remote repository" to merge 2 origins together. Here I am using Acquia & Bitbucket.

So, my both remote origins look like,

When I work on the codebase I do the following to push codes. This is valid only for my work terminal.

Now, the problem is that I have other developers too. So they only have access to bitbucket. So they will push the codes to bitbucket repository and it is me who has to get those updates in my local machine and push to acquia too for deployment.

So the question is how can I get update from bitbucket repository and push to acquia repository so both are in sync.

Please suggest.


Solution

  • You can keep things in sync with a simple

    git pull bitbucket
    git push origin
    

    This pulls the latest changes from one remote repository and applies them to the other.