← All languages
Git command of the day
Random

request-pull

Generate a summary of pending changes for an email pull request.

Description

The git request-pull command generates a summary of changes between two commits and formats it as a pull request message suitable for sending via email. It is the traditional way to request that an upstream maintainer pull changes from your public repository.

The output includes the URL of your repository, a summary of the changes, and a diffstat. The start commit should be a commit in the upstream repository that your work is based on, and the URL should point to your publicly accessible repository.

This command predates web-based pull requests found on platforms like GitHub. It is still used in projects like the Linux kernel where development is coordinated through mailing lists rather than web interfaces.

Arguments

NameDescriptionOptional
start Commit to start at; should exist in the upstream repository. No
url URL of the repository to pull from. No
end Commit to end at; defaults to HEAD. Yes
-p Include patch text in the output. Yes

Example

git request-pull v1.0 https://example.com/repo.git main
git request-pull origin/main https://example.com/repo.git

Reference