@TheoAllen, what I understand it like google drive or cloud, so to make your stuff accessible everywhere, correct?
That's one point, but not the whole point. Because if so, why not just use google drive or other cloud services.
Github is a collaboration platform.
To put it simply, when you commit a change to the source code, you know which line is being deleted, changed, or added. So you could review the changes from yourself or your teammates. When there is a conflict to the source code or a file, you have to decide how do you solve the conflict before committing to the master file/branch.
Here is the scenario:
- Say, hypothetically you have an RPG Maker project.
- Your team consists of experts who prefer to code everything like make their own plugins.
- You will have one main branch. This is where the master of your project. Then other team members will make their own branches to work on their own modification.
- Member A finished their task and push the change to the main branch
- The change is saved to the main branch
- Later, member B finished their task and push the change to the main branch
- Member B discovered that there is a conflict with the source code because member A pushed their change.
- Member B has to adapt the changes from member A
- While member B making an adaptation to their code, member C pushed the change and do the same as member C.
- Turned out member C did quicker than member B to solve the conflict.
- Member C pushed the change, it is saved to the master branch.
- Member B pushed the change, however since C did it first, member B need to solve another conflict.
This makes sure that the change to the project is informed to all of the members.
This is why often when the software claims themselves to be an open-source, the source is always stored in GitHub. Not google drive or other cloud services.