Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Commit to a different Bitbucket repository through Bitbucket Pipelines Edited

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:

      - step:
           - cd ..
           - git clone
           - cp -r build/development-repo/. deployment-repo/
           - cd deployment-repo/
           - git config --global ""
           - git config --global "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.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

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 ...

1,826 views 0 7
Read article

Community Events

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

Events near you