git-paste - Man Page
Send patches to pastebin for chat conversations
Examples (TL;DR)
- 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 @^
Synopsis
git-paste <git format-patch options>
Description
Send patches to pastebin for chat conversations using pastebinit. The syntax highlighting will be set to ´diff´.
Options
<git format-patch options>
All options are passed directly to git format-patch. Given no arguments, git-paste passes @{u} to git format-patch.
Configuration
The pastebinit software chooses the most appropriate pastebin site for your operating system and the pastebinit documentation https://manpages.debian.org/pastebinit contains details of how to configure it to use a different site.
Examples
Pastebin the patches between the current branch and its upstream:
$ git paste $ git paste @{u}
Pastebin the latest commit:
$ git paste -1
Pastebin the latest three commits:
$ git paste -3
Author
Written by Paul Wise <mailto:pabs3@bonedaddy.net>
Reporting Bugs
See Also
Referenced By
September 2019 Git Extras