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 Tendances
- 1. Powell 57.8K posts
- 2. FOMC 54K posts
- 3. Pierre Robert N/A
- 4. #NationalCatDay 4,570 posts
- 5. The Fed 90.2K posts
- 6. Huda 33.4K posts
- 7. Metchie N/A
- 8. Azure 18.8K posts
- 9. Jennifer Welch 13.1K posts
- 10. HAZBINTOOZ 2,822 posts
- 11. Michael Carter N/A
- 12. Olandria 56.3K posts
- 13. Kat Abughazaleh 3,197 posts
- 14. NBA Street 3,059 posts
- 15. #Spooktacular25 N/A
- 16. Hutch 1,618 posts
- 17. #SellingSunset 1,204 posts
- 18. Morgan Wallen N/A
- 19. #SpaceMarine2 2,384 posts
- 20. Jay Z 1,695 posts
Loading...
Something went wrong.
Something went wrong.