Can anybody push to my project on github?

前端 未结 3 1938
悲&欢浪女
悲&欢浪女 2020-12-23 10:47

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 re

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 11:26

    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.

提交回复
热议问题