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

Bitbucket pipelines: Checkout a different branch than master

wvargas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2022

Hello,

I've been trying to checkout a "develop" branch using the pipeline but when I execute the git commands, there's no way for me to see any of my other remote branches.

My idea is to trigger a pipeline to merge from develop to master.

 

Thanks

1 answer

1 accepted

1 vote
Answer accepted
wvargas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2022

I have resolved the command below:

- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"

Thanks to a similar question here: https://community.atlassian.com/t5/Bitbucket-questions/Can-t-checkout-master-on-a-branch-pipeline/qaq-p/1004778

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events