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. Clippers 13.8K posts
- 2. Harden 10K posts
- 3. Huda 8,058 posts
- 4. #DWTS 49.8K posts
- 5. Ty Lue 1,472 posts
- 6. Kawhi 3,582 posts
- 7. Giannis 29.3K posts
- 8. Whitney 15.6K posts
- 9. #RHOSLC 7,562 posts
- 10. #DearOlandria 1,034 posts
- 11. #APEC2025 66K posts
- 12. #RMxAPEC 167K posts
- 13. Askarov N/A
- 14. Markstrom 1,693 posts
- 15. South Korea 70K posts
- 16. Caden 8,352 posts
- 17. Ryan Rollins 3,064 posts
- 18. Chris Paul 1,537 posts
- 19. Connor Bedard 5,025 posts
- 20. Zubac 1,682 posts
Loading...
Something went wrong.
Something went wrong.