« Back to Index

Git Request Pull

View original Gist on GitHub

Git Request Pull.md

In order to do a single commit pull request (without a GitHub Pull Request interface) - i.e. you’ll communicate the diff with another collaborator - then first commit the change to a fork of the repository.

Then run this command:

git request-pull -p <commit-to-start-from> git@github.com:<org>/<repo>.git

This will generate something like the following:

The following changes since commit d30a1ab53b80d35ffef00e9ca168c77798431d1c:

  Starting commit message (2016-04-08 15:27:21 +0100)

are available in the git repository at:

  git@github.com:foo/bar.git 

for you to fetch changes up to 74a6c7433b3197761e69efed1387d17861430b73:

  My Commit Message (2016-04-11 11:46:18 +0100)

----------------------------------------------------------------
Integralist (1):
      My Commit Message

 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index d6022e0..8663373 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-<h1 align="center">Original</h1>
+<h1 align="center">New Title</h1>