From 9ee1d46f6ee5b4b4229507db2e6a91151fd02a6d Mon Sep 17 00:00:00 2001 From: Robyn Marowitz Date: Wed, 27 Sep 2023 10:32:59 -0600 Subject: [PATCH] Add summary --- posts/git-cherry-pick/index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/posts/git-cherry-pick/index.md b/posts/git-cherry-pick/index.md index a1b1acd..55f39e0 100644 --- a/posts/git-cherry-pick/index.md +++ b/posts/git-cherry-pick/index.md @@ -65,6 +65,7 @@ Now at this point I want to take everything from the old `cherry-pick-post` bran There are 3 commits that I want so I can actually pick them all a once. `git cherry-pick 9e5da76 463956b 3edb3ee` + ![](pick-2.png) GitHub gives a great summary of what is happening and shows the commits I am picking. @@ -76,4 +77,10 @@ At this point I have the 3 commits I want on my new branch so I can go ahead and ![](lola-3.png) -Now I no loger want the old branch so I will delete it usingg `git branch -D cherry-pick-post` this will only delete it locally, so you will need to do `git push origin :cherry-pick-post` to delete it from GitHub as well. +Now I no loger want the old branch so I will delete it using `git branch -D cherry-pick-post` this will only delete it locally, so you will need to do `git push origin :cherry-pick-post` to delete it from GitHub as well. + +Note: github will keep untracked history for 2 weeks so there is always time to alter if you decide you want to revive something. + +## Summary + +Cherry picking is a very powerful tool for when a user wants to copy a commit from one branch to another.