How to contribute to an Open Source project

It depends a lot on the project.

Some projects have clear instruction on how to set up the local development environment and how to contribute. Some, usually the ones that are run by corporations, might even require you to sign some electronic document assigning the copyright of your work to them.

Others have no such information.