How to get list of feature branches which are merged to develop but not deleted in Bitbucket?
We need to determine which feature branches are associated with features already delivered to develop and closed or resolved in JIRA.
Thank you..!!
I don't think there's a plugin, as your request can be done locally by basic git commands - and is nothing you would need a git-server (like bitbucket) for ...
Look here:
How can I know in git if a branch has been already merged into master?
or - even better - here:
Hi Johannes,
Actually we have many projects and each project contains lots of repositories. My initial guess is, cloning each repository and running command will take time much. Is there another way to do it like script or something else as we just need the list for the time being?
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know any other way - you should write a script by yourself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johannes,
Thanks for all your help.
As we are checking only one repository, I tried many ways like below to get the exact list of merged branches -
1)
git branch -r --merged develop | grep feature
--> Getting branches including 0 commits ahead with merged branches in git
2)
git-sweep preview --master=develop
--> Getting same result as above
I am getting the branches which are merged into develop, but also getting the list that have 0 commits ahead.
Any idea how to skip/exclude the branches which have 0 commits ahead?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johannes,
Many thanks for reply
Is there any way to get list of feature branches merged before we delete those? or any plugin that satisfies our need?
Thanks in advance.!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to great meetings, with less work. Automatically record, summarize, and share instant recaps of your meetings with Loom AI.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.