How to work multiple people in same project in same time with push or pull request in github.

What is Git :

Git is a command-line tool and software. Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files.

What is Github :

GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.

How to work on same project in same time with push or pull request in Github :

For example person1 and person2 both work on same project in same time.

Person1 or person2 will push his changes in remote master branch in github but second person push his changes in his local master branch. The person who was pushed his changes in local branch first of all that person will pull the last changes/commit in his project pushed by person1 or person2 at that time second person will push his changes in local master branch to remote master branch then after person1 will pull the last changes/commit in his project pushed by person2.

Repeat above process and work on same time in same project in github.

Multiple people work on same project in same time : person1, person2 and person3.

Person1, person2 or person3 will push his changes in remote master branch in github but other two person push his changes in his local master branch. Who person who was pushed his changes in local branch first of all that two person will pull the last changes/commit in his project pushed by person1, person2 or person3. At that time person2 will push his changes in local master branch to remote master branch then after preson1 and person3 will pull the last changes/commit in his project pushed by person2. At that time person3 will push his changes in local master branch to remote master branch then after person1 and person2 will pull the last changes/commit in his project pushed by person3.

Repeat above process and work on multiple people in same time in same project in github.