mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
git-paste: add page (#10992)
* git-paste: add page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
26b18347d0
commit
9caafade05
1 changed files with 13 additions and 0 deletions
13
pages/common/git-paste.md
Normal file
13
pages/common/git-paste.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# git paste
|
||||
|
||||
> Send commits to a pastebin site using `pastebinit`.
|
||||
> Part of `git-extras`.
|
||||
> More information: <https://github.com/tj/git-extras/blob/master/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 {{@^}}`
|
Loading…
Add table
Reference in a new issue