|
|
Subscribe / Log in / New account

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.)


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds