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

switch branch in bitbucket repo with local command

louisrom1 June 12, 2014

I am pulling my code to Phonegap Build from BB using this :

https://myID:mypassd@bitbucket.org/boardlinedevs/boardline.git
but, altough I have

git checkout featureBranch1

on my local machine, phonegap build is sill pulling code from the master branch.

How to chekcout to another branch in Biotbucket ?(sorry I am new to this)

1 answer

1 accepted

0 votes
Answer accepted
louisrom1 June 14, 2014

Answering to myself : I think the only option is to change what bitbucket calls the "Main" branch in the settings, so that it is the branch that is pulled with this url.

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2014

Seems like a shortcoming of Phonegap Build (whatever that is) that it doesn't allow you to specify a branch.

louisrom1 June 15, 2014

if it was not with Phonegap, how would you modify the url to pull another branch ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events