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 Tendenze
- 1. Powell 59.9K posts
- 2. Metchie 1,733 posts
- 3. Pierre Robert 1,045 posts
- 4. FOMC 54K posts
- 5. Michael Carter 2,068 posts
- 6. #NationalCatDay 4,737 posts
- 7. Huda 34.1K posts
- 8. The Fed 89.2K posts
- 9. Jennifer Welch 13.3K posts
- 10. Azure 19.4K posts
- 11. Sonya Massey 2,277 posts
- 12. DeJean N/A
- 13. HAZBINTOOZ 3,123 posts
- 14. Olandria 56.7K posts
- 15. NBA Street 3,157 posts
- 16. #DHAtlanta N/A
- 17. #SellingSunset 1,285 posts
- 18. Kat Abughazaleh 3,668 posts
- 19. Hutch 1,631 posts
- 20. #Spooktacular25 N/A
Loading...
Something went wrong.
Something went wrong.