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 الاتجاهات
- 1. #AEWDynamite 13.9K posts
- 2. JUNGWOO 25.5K posts
- 3. #Survivor49 2,731 posts
- 4. Donovan Mitchell 4,658 posts
- 5. doyoung 29.9K posts
- 6. Snell 10.7K posts
- 7. Cavs 8,156 posts
- 8. Kacie N/A
- 9. Yesavage 6,090 posts
- 10. #SistasOnBET 1,073 posts
- 11. #LoveIsBlindReunion N/A
- 12. Mobley 1,877 posts
- 13. Josh Minott N/A
- 14. #AbbottElementary 1,419 posts
- 15. Okada 4,083 posts
- 16. Jaylen Brown 7,181 posts
- 17. Trae Young 2,295 posts
- 18. Blood and Guts N/A
- 19. Davis Schneider 5,406 posts
- 20. Game 5 58.1K posts
Loading...
Something went wrong.
Something went wrong.