Tell HN: Main/master debacle still hurts 7 years later 3 points · 3 comments
TL;DR A short text post by a developer who says they still spend time every day working out the default branch of a given repository, seven years after the main/master rename debate. The post asks no question and includes no link beyond the thread itself. Three commenters reply, offering a git alias workaround and noting that the default branch can simply be queried.
- The poster says that, seven years on, they must check each repo to find its default branch (main or master).
- The post wishes that the community had learned a lesson from the main/master debate.
- A commenter links a Stack Overflow question on a git alias that works whether the branch is named main, master, or something else.
- Another commenter argues that the default branch can be fetched with a single command or by asking an AI tool.
- They point out that many default branch names are in use besides main and master.
- The reply to that argument is that the cost adds up when the check is needed every day.
Discussion The thread is very small, with three comments, and is mostly a practical exchange about a minor daily annoyance. Commenters offer a workaround and a counterpoint rather than debating the original rename itself. The mood is brief and matter-of-fact, with a light note of frustration from the poster.
- Git aliases or scripts can solve the lookup problem (some): One commenter points to a Stack Overflow answer showing a git alias that works regardless of whether the default branch is main, master, or another name. They present it as a practical fix rather than a policy argument.
- Just query the default branch with a command (some): Another commenter asks why anyone needs to hunt for it at all, since a single command or an AI assistant can report the default branch. They note that many names are used besides main and master.
- Repeated manual checks are still a real cost (a few): A reply argues that even a simple lookup becomes a meaningful burden when repeated every day, so the complaint is reasonable.
Links from the comments