Skip to content

Commit

Permalink
Add summary
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarow committed Sep 27, 2023
1 parent 8698585 commit 9ee1d46
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion posts/git-cherry-pick/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.

0 comments on commit 9ee1d46

Please sign in to comment.