TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Script that changes GitHub default branches to master

26 点作者 danpetrov将近 5 年前

4 条评论

arvigeus将近 5 年前
Next: Ban using the term &quot;executable&quot;, because it promotes violence.<p>Seriously, this is a problem with the English language, not the software.
评论 #23534049 未加载
评论 #23536001 未加载
valerij将近 5 年前
doing a full clone just to change a branch name seems a bit wasteful.<p><pre><code> git init git remote add origin ... git push origin (git ls-remote origin | grep &quot;refs&#x2F;heads&#x2F;master&quot; | cut -f1 ):master </code></pre> should be enough
gitgud将近 5 年前
The Readme could use a little more context as to why this is necessary. Did Github change the &quot;master&quot; branch to &quot;main&quot;?
moeffju将近 5 年前
Why would you want to explicitly preserve racist terminology? What point are you trying to make?
评论 #23524725 未加载
评论 #23526541 未加载
评论 #23525186 未加载
评论 #23525047 未加载