How to disable the squash and merge for particular branch in repository . #50593
Replies: 10 comments 13 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
whats your default branch? it is |
Beta Was this translation helpful? Give feedback.
-
I am also on same page where @gebeto is. |
Beta Was this translation helpful? Give feedback.
-
Just an update for anyone who finds this discussion:
Hopefully GitHub addresses this eventually. I have done accidental squash commits on a branch where I didn't want them, which is a hassle to fix... |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I think it would be ideal to allow each merge strategy to be restricted based on branch rules (which would overrule the repo sets), e.g.:
If a repo only has "squash and merge" selected, but then the release branch ruleset has "rebase and merge", perhaps rebase and merge is only enabled for the release branch. I do think that the repo settings would need to have a little note mentioning what branch rules override the repo rules (e.g. "You don't have 'rebase and merge' enabled, but these rulesets do. To change that, please modify the rulesets") |
Beta Was this translation helpful? Give feedback.
-
Looks like they'll be implementing this feature hopefully before the end of the year https://github.com/orgs/community/discussions/10809#discussioncomment-10329765 |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have 2 branches 'main' and 'develop' i want to disable the squash and merge for main branch while enable for develop branch.
Beta Was this translation helpful? Give feedback.
All reactions