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
I personally just "git checkout -b NEWBRANCH" then go back to the previous branch and reset to the last good commit
1
0
2
0
0
So... three checkouts by the time you get back to the new branch to continue working?
1
0
0
0
0
Again, only one is necessary if you use proper commands like branch and reset.
1
0
0
0
0
"proper" 🤔 But, yes, branch instead of checkout -b, avoids the three checkout dance. branch/reset/checkout indeed works... like this:
2
0
1
0
0
United States Trendy
- 1. #WorldSeries 118K posts
- 2. Ernie Clement 8,952 posts
- 3. Ohtani 60.6K posts
- 4. #SNME 76.2K posts
- 5. Auburn 10.6K posts
- 6. Hugh Freeze 3,486 posts
- 7. Blue Jays 73.9K posts
- 8. Gimenez 14.7K posts
- 9. Bo Bichette 24K posts
- 10. Jesse Love 3,408 posts
- 11. Mateer 2,787 posts
- 12. Tate Sandell N/A
- 13. Max Muncy 3,052 posts
- 14. NC State 3,526 posts
- 15. Heupel 1,197 posts
- 16. Toronto 48K posts
- 17. Nebraska 13.1K posts
- 18. Shohei 41.5K posts
- 19. Georgia Tech 3,838 posts
- 20. Jordan Marshall 1,399 posts
Loading...
Something went wrong.
Something went wrong.