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. Halloween 1.74M posts
- 2. Dolphins 37.6K posts
- 3. Ryan Rollins 11.1K posts
- 4. Ravens 53.6K posts
- 5. Mike McDaniel 4,579 posts
- 6. YouTube TV 44.5K posts
- 7. Lamar 49.7K posts
- 8. Derrick Henry 5,347 posts
- 9. #DBX4 1,511 posts
- 10. Achane 4,712 posts
- 11. Starks 3,368 posts
- 12. #TNFonPrime 2,840 posts
- 13. Mark Andrews 3,278 posts
- 14. UTSA 3,518 posts
- 15. Mary Ann N/A
- 16. Bucks 47.5K posts
- 17. Tulane 9,345 posts
- 18. Jackson 5 4,333 posts
- 19. #RHOC 3,101 posts
- 20. YTTV N/A
                            Loading...
                        
                    Something went wrong.
Something went wrong.
 
             
            