Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

国人的repo就是牛逼 #79

Closed
xx10n31y opened this issue Feb 19, 2024 · 1 comment
Closed

国人的repo就是牛逼 #79

xx10n31y opened this issue Feb 19, 2024 · 1 comment

Comments

@xx10n31y
Copy link

在explorer看到, 什么叫除代码之外的不要fork, 国人的repo就是牛逼. 你这么牛逼, 应该开private repo, 傻卵

Repository owner locked as off-topic and limited conversation to collaborators Feb 19, 2024
@TransparentLC
Copy link
Owner

虽然语气很不友善,不过既然问到这个的话想了想还是应该解释一下。

“在开源项目中,分支常用于迭代想法或更改,然后将其合并到上游存储库。”

关于分叉 - GitHub 文档

Fork 的作用是让你可以在已有 repo 的基础上添加新功能、修复 bug 等等,也有可能是因为原作者停止维护或理念不合等原因而 fork 出来作为新的项目继续发展,本质上其实都是用来贡献代码的,可以把自己的修改反馈到上游不过这个也是可选的。

但是实际上有很多人把 fork 误用成了收藏,比如有些 fork 这个 repo 的用户我点进去一看发现有数十成百上千个 repo,其中绝大部分都是 fork,几乎所有 fork 都是“This branch is up to date with ...”或者“This branch is ... commits behind ...”而不是“This branch is ... commits ahead of ...”,也就是说这些 fork 没有产生任何代码贡献。我暂且不知道这些用户这么做的意义。

更符合收藏用途的应该是 star,同时也可以作为对维护者的一种小小的鼓励,不愿意或不方便 star 的话使用浏览器的收藏夹/书签等等也是可以的。有些 repo 的用途是“fork 然后自行修改某些参数用来执行 GitHub Actions”,更适合这种情况的其实是把它作为 template repo。

我写上那句话只是为了提醒看到它的人,没有完全不允许 fork 的意思(即使 GitHub 真的允许这么做)。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants