Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can anybody push to my project on github?

Tags:

git

github

push

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?

like image 555
Silvery Avatar asked Jul 03 '13 08:07

Silvery


People also ask

Can anyone push to a GitHub repo?

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.

Can I push to someone else's repository?

Using the command lineAdd a connection to your friend's version of the github repository, if you haven't already. Pull his/her changes. Push them back to your github repository. The pull request on github will be automatically closed.

Can people see my projects on GitHub?

For public projects, everyone on the internet can view the project. For private projects, only users granted at least read access can see the project. Only the project visibility is affected; to view an item on the project, someone must have the required permissions for the repository that the item belongs to.

How do I allow collaborators to push on GitHub?

The Owner needs to give the Collaborator access. On GitHub, click the settings button on the right, then select Collaborators, and enter your partner's username. To accept access to the Owner's repo, the Collaborator needs to go to https://github.com/notifications. Once there she can accept access to the Owner's repo.


1 Answers

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.

like image 55
Sébastien Dawans Avatar answered Sep 18 '22 06:09

Sébastien Dawans