mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 19:45:48 +00:00
Update cheatsheets
This commit is contained in:
18
git-paste
Normal file
18
git-paste
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 {{@^}}`
|
||||
Reference in New Issue
Block a user