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 Tendências
- 1. Louisville 58.9K posts
- 2. Jets 130K posts
- 3. MD-11 14K posts
- 4. Honolulu 5,718 posts
- 5. Courtois 68.2K posts
- 6. Madrid 426K posts
- 7. Sauce 87.1K posts
- 8. Liverpool 298K posts
- 9. Colts 63.1K posts
- 10. Jared Isaacman 5,264 posts
- 11. UPS Flight 2976 10.3K posts
- 12. Cheney 278K posts
- 13. Breece 18.9K posts
- 14. #OlandriaxGlamourWOTY 1,033 posts
- 15. #いい推しの日 817K posts
- 16. Azzi 5,596 posts
- 17. McDonnell Douglas 5,972 posts
- 18. #AreYouSure2 18.8K posts
- 19. #MACtion 2,324 posts
- 20. Beane 6,322 posts
Loading...
Something went wrong.
Something went wrong.