简体   繁体   中英

how to create a pull request on bitbucket when local branch already exists

I already made a feature branch on my local repository and committed my changes to it. Say it's called feature_x . This branch does not exist at the origin, which is bitbucket.org.

I want to make a pull request of my changes to the develop branch on bitbucket so my teammates can do a code review.

I do see the instructions on bitbucket for creating a pull request and I started to go through that dialog, but one of my obstacles is I need a branch on bitbucket to do the pull request from, but I only have a local feature branch.

These commands did what I needed to do on my side in order for bitbucket to be able to do a pull request. I was on a branch called feature_X :

git branch -m feature_X_toddmo
git push --set-upstream origin feature_X_toddmo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM