From 12817c8930bd7a1f7f5050d472490b8a96a6ddc6 Mon Sep 17 00:00:00 2001 From: Amory Meltzer Date: Sun, 4 Oct 2020 07:34:01 -0400 Subject: [PATCH] git-cherry: add page Requested in #3953. --- pages/common/git-cherry.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/git-cherry.md diff --git a/pages/common/git-cherry.md b/pages/common/git-cherry.md new file mode 100644 index 00000000000000..3c851a09b2ef92 --- /dev/null +++ b/pages/common/git-cherry.md @@ -0,0 +1,16 @@ +# git cherry + +> Find commits that have yet to be applied upstream. +> More information: . + +- 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}}`