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 Trends
- 1. New York 18.5K posts
- 2. New York 18.5K posts
- 3. Virginia 500K posts
- 4. #DWTS 39.5K posts
- 5. $TAPIR N/A
- 6. Texas 210K posts
- 7. Prop 50 167K posts
- 8. Cuomo 397K posts
- 9. TURN THE VOLUME UP 11.1K posts
- 10. Bulls 35.1K posts
- 11. Sixers 12.7K posts
- 12. #Election2025 15.5K posts
- 13. Jay Jones 95.4K posts
- 14. Embiid 6,053 posts
- 15. Maxey 7,823 posts
- 16. Eugene Debs 2,064 posts
- 17. Harden 9,417 posts
- 18. WOKE IS BACK 29.8K posts
- 19. Josh Giddey 5,646 posts
- 20. Andy 65.1K posts
Loading...
Something went wrong.
Something went wrong.