I have a repo with some code and I have another repo that has the same code, but in a different file structure. This is so that I have the first repo for development and the second repo for deployment to Heroku.
I'm having trouble figuring out how I would push to a different repo. My pipeline is set up something like this:
pipelines: branches: master: - step: script: - cd .. - git clone firstname.lastname@example.org:themahakuma/jeebito-heroku-deployment.git - cp -r build/development-repo/. deployment-repo/ - cd deployment-repo/ - git config --global user.email "email@example.com" - git config --global user.name "pipeline" - git add . - git commit -m "Updating heroku deployment repo" - git push origin master:master
I've tried making the remote url set to use https instead as well. I've tried adding my own credentials and none of it works.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events