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. New York 1.3M posts
- 2. New York 1.3M posts
- 3. #RadioStatic 6,495 posts
- 4. Virginia 553K posts
- 5. Alastor 20.1K posts
- 6. #Talus_Labs 1,009 posts
- 7. Van Jones 2,902 posts
- 8. Prop 50 194K posts
- 9. #XLOV 14.5K posts
- 10. #QuestPit 7,959 posts
- 11. AND SO IT BEGINS 11.6K posts
- 12. But the Lord 8,664 posts
- 13. Cyrene 119K posts
- 14. TURN THE VOLUME UP 26.8K posts
- 15. Sanford N/A
- 16. #River 4,096 posts
- 17. Ty Lue 1,003 posts
- 18. RIP NYC 24.3K posts
- 19. Jay Jones 109K posts
- 20. Clippers 9,656 posts
Loading...
Something went wrong.
Something went wrong.