有人能在 github 上推我的项目吗?

我不仅是个新手,也是个新手。我在 github 上建立了一个回收站,我可以把本地的东西推送到这个远程回收站。现在问题来了: 只要我把一些东西推到远程回购,然后刷新页面,我就可以看到更改被上传(例如,如果我写了一个 readme.txt,然后把它推到远程回购,在那里没有这样的 readme.txt,在推和刷新页面之后,它出现了)。

有人可以随意更改我在 Github 上的回购协议吗?或者,如果我将某些内容推送到 linux 内核,我所做的更改是否可以添加到该内核并对所有人公开?

62030 次浏览

No, all repositories are read-only for anonymous users. By default only the owner of the repository has write access. If you can push to your own repo, it's because you are using one of the supported authentification methods (HTTPS, SSH, ...).

If you want to grant someone else privileges to push to your repo, you would need to configure that access in the project settings.

To contribute to projects in which you don't have push access, you push to your own copy of the repo, then ask for a pull-request. Linux is not a good example for that, because the kernel developers do not use GitHub pull requests.

No, but if the repository is public others can fork it, commit to their own fork.

They can then ask you to pull some of the changes in their fork into your repository via a pull-request.

Nobody can push directly to your repository if you are not already granting them write access.

The process for contributing to a public repository in GitHub starts by forking the repository, then pushing the change onto the forked, then creating a pull request onto the original repository. After that comes the role of the project owner to review and take action (merge/decline) of the requested code change.

For more details, please check the below helpful article:

https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project