Joining in some existing repository - UnbDroid/AprendendoGithub GitHub Wiki

Now we know how to create a git repository, we are going to learn about how to join in some existing repository.

Our existing repository is the AprendendoGithub.

To working in some existing repository, you must to have it on your own computer. So, we are going to create a copy, that is, clone a repository. To do that, type the commands:

cd ~/GitHub/
git clone https://github.com/UnbDroid/AprendendoGithub

Always you need to clone some repository, you can go to the browser and copy the url link and paste the url after the git clone command.

After doing that, you have your own copy in your computer. You can work on it but everything you change in this repository will not change the internet's repository unless you say to git do that. We are going to explain it in more details further.

Until this moment, we have only cloned a repository. There are three ways to working in this repository:

  • You make changes and nothing happens on internet's repository;
  • You make changes and your changes will be sent to the internet repository but you must having someone else's permission to approve these changes, in that case you are a contributor;
  • You make changes and you are a collaborator, so your changes will appear instantly.

To join in some repository, you must to be a collaborator. Otherwise, you are a contributor and always you must to have permissions to make any changes. For instance, look at Retropi Repository which there are only 4 collaborators and 87 contributors.

There are two types of "account": personal(as you are) and organizations(as Droid is). To see the Droid's members, click here. If you are joining in a organization(and became a member), you must to have the permission of a owner of the organization. With that you can edit any file in any repository of the organization. If you are joining in someone's repository, you have to ask him to make you a collaborator.

To became a collaborator ask the owner of the repository/organization. That way of making changes and approving them or not we will see further.