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 Xu hướng
- 1. Happy Halloween 678K posts
- 2. Dolphins 38.8K posts
- 3. Ryan Rollins 11.6K posts
- 4. YouTube TV 46K posts
- 5. Ravens 54.7K posts
- 6. Mike McDaniel 4,783 posts
- 7. Lamar 50.9K posts
- 8. #SinisterMinds 4,507 posts
- 9. #DBX4 1,635 posts
- 10. Derrick Henry 5,423 posts
- 11. YTTV N/A
- 12. Achane 4,761 posts
- 13. Starks 3,491 posts
- 14. Mary Ann N/A
- 15. #TNFonPrime 2,918 posts
- 16. Talbot N/A
- 17. Hulu 18.5K posts
- 18. #RHOC 3,198 posts
- 19. UTSA 3,624 posts
- 20. Bucks 48.5K posts
                            Loading...
                        
                    Something went wrong.
Something went wrong.
 
             
            