mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 00:47:55 +00:00
Update cheatsheets
This commit is contained in:
21
git-cherry
Normal file
21
git-cherry
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git cherry
|
||||
|
||||
> Find commits that have yet to be applied upstream.
|
||||
> More information: <https://git-scm.com/docs/git-cherry>.
|
||||
|
||||
- Show commits (and their messages) with equivalent commits upstream:
|
||||
|
||||
`git cherry -v`
|
||||
|
||||
- Specify a different upstream and topic branch:
|
||||
|
||||
`git cherry {{origin}} {{topic}}`
|
||||
|
||||
- Limit commits to those within a given limit:
|
||||
|
||||
`git cherry {{origin}} {{topic}} {{base}}`
|
||||
Reference in New Issue
Block a user