Missed Team ’24? Catch up on announcements here.

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

Can I reuse a branch which hosted a pull request?

Skip Montanaro April 10, 2017

Suppose I create a branch B, make some changes, push it, then create a pull request against master. Once that pull request has been absorbed into master, can I resync B with master and then reuse it for a new pull request?

3 answers

3 votes
Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2018

Hey Skip, 

 

If this is for Bitbucket Server, the branch will not be removed from Bitbucket and certainly not from you local copy after a merge occurs. You can always reuse that branch if you'd like or remove it. In Bitbucket Cloud we wont' remove the branch after a pull request is merged unless you use the "Close branch" checkbox during pull request creation. Hope that helps! 

0 votes
Kalpesh soni
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!
August 9, 2018

When I tried to this exact thing, the second PR shows all the commits and ends up in conflict

0 votes
BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 29, 2018

Here's an article too that I use when working with Feature Branches :)

https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow

 

Cheers!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events