HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git paste — Send commits to a pastebin site using `pastebinit`. Part of `git-extras`. More information: <https:/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
sendcommandpastebinclicommitsusinggit pastesite

Problem

How to use the git paste command: Send commits to a pastebin site using pastebinit. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-paste>.

Solution

git paste — Send commits to a pastebin site using pastebinit. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-paste>.

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 {{@^}}

Code Snippets

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 {{@^}}

Context

tldr-pages: common/git paste

Revisions (0)

No revisions yet.