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. Clippers 13.1K posts
- 2. Harden 9,524 posts
- 3. #DWTS 49K posts
- 4. Ty Lue 1,383 posts
- 5. Giannis 28K posts
- 6. Kawhi 3,410 posts
- 7. Huda 6,181 posts
- 8. #RHOSLC 7,250 posts
- 9. Whitney 15.3K posts
- 10. Markstrom 1,675 posts
- 11. Brunson 7,111 posts
- 12. #DearOlandria N/A
- 13. Chris Paul 1,526 posts
- 14. Zubac 1,633 posts
- 15. Askarov N/A
- 16. Caden 8,041 posts
- 17. Ryan Rollins 2,956 posts
- 18. Connor Bedard 4,862 posts
- 19. Alix 6,642 posts
- 20. Brook Lopez N/A
Loading...
Something went wrong.
Something went wrong.