The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Is deleting feature branches from which pull requests originate ok?

GeorgG
Contributor
January 30, 2013

Hi everyone,

we're currently evaluating Stash and have a question regarding our future workflow. We've adapted the git flow branching model a while ago and by default create many feature branches which we eventually merge into the develop branch. We'd like to use Stash pull requests to facilitate that merge. We'd also like to prune merged feature branches from the git repository to avoid cluttering the repository with "dead" branches on the server side. Here's my question: What happens if we delete a remote feature branch with `git push origin --delete <branchname>` if a pull request originated from that branch (that would be the case for most of them)? Is that a valid way to use Stash or do we need some sort of workaround?

Thanks in advance for your help!

Cheers,

Georg

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
seb
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2013

Hi Georg,

It's perfectly ok to delete your feature branches after merging pull requests. Your pull requests will stay intact as you expect them and we have ensured that they will not be garbage collected by Git.

Regards,

Seb

GeorgG
Contributor
January 30, 2013

excellent - thanks for the quick reply!

jhinch (Atlassian)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2013

Just to add to Seb's answer this is the workflow the Stash team uses to develop Stash.

GeorgG
Contributor
January 31, 2013

@Jason: Is there a complete documentation on your workflow by any chance? I think this might help resolve other questions, as well.

Jens Schumacher [Atlassian]
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 Champions.
January 31, 2013

We are planning to document our workflow in the next few weeks in a blog post and/or our documentation.

GeorgG
Contributor
January 31, 2013

Great - looking forward to it

TAGS
AUG Leaders

Atlassian Community Events