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 Tren
- 1. Game 7 1,409 posts
- 2. #Talus_Labs N/A
- 3. Kawhi 6,950 posts
- 4. jungkook 762K posts
- 5. Glasnow 6,439 posts
- 6. Ja Morant 5,024 posts
- 7. Barger 5,905 posts
- 8. Bulls 31.1K posts
- 9. Sasaki 11K posts
- 10. #LetsGoDodgers 11.1K posts
- 11. Grizzlies 7,135 posts
- 12. #RipCity N/A
- 13. Roki 7,616 posts
- 14. GAME SEVEN 7,450 posts
- 15. Happy New Month 98.3K posts
- 16. Clement 5,084 posts
- 17. Rojas 11.1K posts
- 18. Justin Dean 2,280 posts
- 19. Yamamoto 35.4K posts
- 20. Joe Carter 1,330 posts
Loading...
Something went wrong.
Something went wrong.