From 9caafade05e733576335d4da0b866025fb59cb50 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Sun, 15 Oct 2023 19:18:15 +0200 Subject: [PATCH] git-paste: add page (#10992) * git-paste: add page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/git-paste.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/common/git-paste.md diff --git a/pages/common/git-paste.md b/pages/common/git-paste.md new file mode 100644 index 000000000..46ecb0384 --- /dev/null +++ b/pages/common/git-paste.md @@ -0,0 +1,13 @@ +# git paste + +> Send commits to a pastebin site using `pastebinit`. +> Part of `git-extras`. +> More information: . + +- Send the patches between the current branch and its upstream to a pastebin using `pastebinit`: + +`git paste` + +- Pass options to `git format-patch` in order to select a different set of commits (`@^` selects the parent of HEAD, and so the currently checked out commit is sent): + +`git paste {{@^}}`