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 Trendler
- 1. Jeremiah Smith 5,353 posts
- 2. Vandy 8,414 posts
- 3. Julian Sayin 4,384 posts
- 4. Caleb Downs N/A
- 5. Ohio State 13.9K posts
- 6. Pavia 3,244 posts
- 7. Caicedo 24.2K posts
- 8. Arch Manning 3,393 posts
- 9. Vanderbilt 6,823 posts
- 10. CJ Donaldson N/A
- 11. Clemson 8,200 posts
- 12. #HookEm 3,120 posts
- 13. French Laundry 4,762 posts
- 14. Christmas 130K posts
- 15. Jim Knowles N/A
- 16. Buckeyes 4,322 posts
- 17. Gus Johnson N/A
- 18. #GoBucks 2,505 posts
- 19. Arvell Reese N/A
- 20. Dawson 3,571 posts
Loading...
Something went wrong.
Something went wrong.