jenkinsci / jenkinsci/git-plugin

[JENKINS-51217] Option to squash commits on merge

Open
#3,298 0 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Git plugin lacks an option to squash commits when using 'Merge before build' behavior in pipeline. Although, the support for this option is implemented in Git-client plugin.

The option is useful in cases when squashed commit should be pushed into another remote branch

---
Originally reported by horn, imported from: Option to squash commits on merge


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

Git plugin lacks an option to squash commits when using 'Merge before build' behavior in pipeline. Although, the support for this option is implemented in Git-client plugin.

The option is useful in cases when squashed commit should be pushed into another remote branch

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.