News for hackers. Stuff that matters.
Re:Git 3.0 will use main as the default branch by LecroJS on Monday November 24, 2025 @09:13AM (#46034331)
I had this problem too until I forced myself to use the `gcm` alias from oh-my-zsh’s Git plugin. IIRC it checks out to master if it exists, else main. It has almost entirely removed this distinction from my life.
Re:Git 3.0 will use main as the default branch by weebull on Monday November 24, 2025 @10:50AM (#46035388)
I hope you never come across a repo that has an old out-of-date `master` branch, because they moved to using `main` in a bad way.
Re:Git 3.0 will use main as the default branch by Sander_Marechal on Monday November 24, 2025 @11:19AM (#46035720)
No problem. The parent had it the wrong way around. OMZ will use main if it exists, master otherwise. So a bad move still works!
Re:Git 3.0 will use main as the default branch by LecroJS on Monday November 24, 2025 @01:49PM (#46037584)
Thanks that’s good to know