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 Trendler
- 1. Cowboys 69.3K posts
 - 2. Nick Smith Jr 11.8K posts
 - 3. Kawhi 4,478 posts
 - 4. Cardinals 31.2K posts
 - 5. #LakeShow 3,501 posts
 - 6. #WWERaw 63.4K posts
 - 7. Jerry 45.6K posts
 - 8. #WeTVAlwaysMore2026 595K posts
 - 9. Kyler 8,638 posts
 - 10. Blazers 8,176 posts
 - 11. Jonathan Bailey 27.7K posts
 - 12. Logan Paul 10.4K posts
 - 13. No Luka 3,768 posts
 - 14. Valka 4,970 posts
 - 15. Jacoby Brissett 5,750 posts
 - 16. Dalex 2,636 posts
 - 17. Pacers 13.3K posts
 - 18. Bronny 14.8K posts
 - 19. Pickens 6,704 posts
 - 20. Javonte 4,432 posts
 
                            Loading...
                        
                    Something went wrong.
Something went wrong.