How to squash the merge commit directly from ui

mihir shah
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!
October 31, 2023

Hi is it possible to squash a commit direct;y from bitbucket ui.instead of manual command line merge and squash

1 answer

0 votes
Navpreet Ahuja
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2023

Hi

You can use `squash` merge strategy for your pull requests

 

On click of the merge button on any pull request page, opens up the merge dialog. Here under merge strategy change it to the desired strategy.

Screenshot 2023-11-06 at 8.43.45 pm.png

 


If this merge strategy doesn't appear, make sure it is enabled under Project or Repository settings

- Go to Project/Repository settings

- Under Pull requests select merge strategies

 

Screenshot 2023-11-06 at 8.46.13 pm.png

 

On a side note, If squash is the preferred merge strategy for the team, you can also "Set it as default" using meatball menu under Actions

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events