Okay, one more... Ever commit something only to immediately realize that you're on the wrong branch? Use "git move <branch>".
 
                                            15
            63
            165
            1
            0
        It's pick your poison, really. Here's the same end result using cherry-pick:
 
                                            2
            0
            1
            0
            0
        It *would* have the advantage of saving the metadata from the original commit, but that's three checkouts, so likely much slower.
1
            0
            0
            0
            0
        Also this way, any uncommitted changes remain uncommitted after copy.
1
                0
                1
                0
                0
                Yep (though somewhere in the thread, I wrapped the original in a stash & pop, so same result).
1
                0
                1
                0
                0
                United States Trends
- 1. Happy Halloween 205K posts
- 2. Dolphins 40.3K posts
- 3. YouTube TV 47.2K posts
- 4. Ryan Rollins 12.1K posts
- 5. #SinisterMinds 6,179 posts
- 6. Ravens 55.5K posts
- 7. Mike McDaniel 5,067 posts
- 8. Lamar 52.1K posts
- 9. Talbot 1,021 posts
- 10. Mary Ann N/A
- 11. YTTV N/A
- 12. Fiala 1,691 posts
- 13. Hulu 18.7K posts
- 14. #DBX4 1,792 posts
- 15. #RHOC 3,384 posts
- 16. #RUNSEOKJIN_epTOUR_ENCORE 78.6K posts
- 17. Achane 4,788 posts
- 18. Henry 56.7K posts
- 19. UTSA 3,684 posts
- 20. #TNFonPrime 3,013 posts
                            Loading...
                        
                    Something went wrong.
Something went wrong.
 
            