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 トレンド
- 1. Cowboys 68.9K posts
 - 2. Nick Smith Jr 11.2K posts
 - 3. Kawhi 4,413 posts
 - 4. Cardinals 31K posts
 - 5. #LakeShow 3,428 posts
 - 6. #WWERaw 62.8K posts
 - 7. Jerry 45.9K posts
 - 8. Kyler 8,553 posts
 - 9. Blazers 8,140 posts
 - 10. #WeTVAlwaysMore2026 408K posts
 - 11. No Luka 3,666 posts
 - 12. Jonathan Bailey 25.5K posts
 - 13. Logan Paul 10.3K posts
 - 14. Valka 4,894 posts
 - 15. Cuomo 178K posts
 - 16. Jacoby Brissett 5,693 posts
 - 17. Pickens 6,692 posts
 - 18. Dalex 2,608 posts
 - 19. Pacers 13.1K posts
 - 20. Javonte 4,395 posts
 
                            Loading...
                        
                    Something went wrong.
Something went wrong.