任何人都可以在github上推送我的项目吗? [英] Can anybody push to my project on github?

查看:1006
本文介绍了任何人都可以在github上推送我的项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对git和github都是新手。我在github上设置了一个回购站,我可以将本地的东西推到这个远程回购站。现在是这样一个问题:在我将东西推到远程仓库后,刷新页面后,我可以看到上传的更改(例如,如果我写了一个readme.txt并将其推送到远程仓库,一个readme.txt不存在,推后刷新页面,它出现)。

那么任何人都可以自由更改我的回购Github吗?或者如果我将某些东西推到linux核心,那么我所做的更改可以添加到它并公开给所有人吗?

不,所有存储库对于匿名用户都是只读的。
默认情况下,只有存储库的所有者才具有写权限。如果您可以推送到自己的回购站,那是因为您正在使用支持的验证方法之一(HTTPS,SSH,...)。



如果您想授予其他人的特权推送到您的回购站,您需要在项目设置中配置该访问权限。



要为您没有推送权限的项目贡献力量,你推到你自己的回购副本,然后要求拉请求。 Linux并不是一个很好的例子,因为内核开发者不使用GitHub pull请求。


I am new to git as well as github. I set up a repo on github, and I can push local stuff to this remote repo. Now here is the question: just after I push something to the remote repo, and I refresh the page, I can see the changes are uploaded(for example, if I wrote a readme.txt and push it to the remote repo, where such a readme.txt did not exist, after push and refresh the page, it appears).

So can anybody change my repo on github freely? Or if I push something to linux kernal, can the changes I made be added to it and public for all?

解决方案

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.

这篇关于任何人都可以在github上推送我的项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆