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. Prince Andrew 38.2K posts
- 2. Happy Halloween 65.4K posts
- 3. Ryan Clark 3,518 posts
- 4. $AMZN 51.8K posts
- 5. #LightningStrikes N/A
- 6. Sydney Sweeney 111K posts
- 7. Henry 47.7K posts
- 8. #ShootingStar N/A
- 9. Heritage 49.5K posts
- 10. Usha 35.8K posts
- 11. Andrew Mountbatten Windsor 8,445 posts
- 12. Somalia 60.9K posts
- 13. Rhule 5,865 posts
- 14. Royal Lodge 9,053 posts
- 15. Thursday Night Football 3,753 posts
- 16. Fort Dix N/A
- 17. Scream 7 48.2K posts
- 18. Bill Kristol 2,262 posts
- 19. #TNFonPrime N/A
- 20. YouTube TV 38.1K posts
Loading...
Something went wrong.
Something went wrong.