git - How to pull from an origin and merger to a different one? -
i following acquia tutorial "using acquia cloud remote repository" merge 2 origins together. here using acquia & bitbucket.
so, both remote origins like,
- origin - [sitename]@svn-[number].prod.hosting.acquia.com:[sitename].git
- bitbucket - git@bitbucket.org:[username]/[repo].git
when work on codebase following push codes. valid work terminal.
- git add .
- git commit -m "message"
- git push origin develop && git push bitbucket develop
now, problem have other developers too. have access bitbucket. push codes bitbucket repository , me has updates in local machine , push acquia deployment.
so question how can update bitbucket repository , push acquia repository both in sync.
please suggest.
you can keep things in sync simple
git pull bitbucket git push origin this pulls latest changes 1 remote repository , applies them other.
Comments
Post a Comment