main branches locally
main branches locally
Posted Oct 21, 2025 21:15 UTC (Tue) by iabervon (subscriber, #722)In reply to: main branches locally by josh
Parent article: Git considers SHA-256, Rust, LLMs, and more
In your local repositories, you can just checkout origin/main and then branch -d main. It's a hassle that it creates it, but you don't need to keep it if you don't want to. (Alternatively, you can just use branch -m to turn it into the first local branch you want.)