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 Trends
- 1. Dodgers 719K posts
- 2. World Series 379K posts
- 3. World Series 379K posts
- 4. Blue Jays 151K posts
- 5. Yamamoto 223K posts
- 6. Will Smith 51K posts
- 7. Miguel Rojas 43.8K posts
- 8. Yankees 16.1K posts
- 9. Kershaw 36.7K posts
- 10. Baseball 167K posts
- 11. Kendrick 18.1K posts
- 12. Dave Roberts 14.4K posts
- 13. Vladdy 22.7K posts
- 14. #Worlds2025 28.3K posts
- 15. Ohtani 89.9K posts
- 16. jungkook 361K posts
- 17. Carlos Manzo 282K posts
- 18. Jeff Hoffman 3,887 posts
- 19. Mets 11.8K posts
- 20. Cubs 7,789 posts
Loading...
Something went wrong.
Something went wrong.