Say your partner is Tom.
-
Fork Tom's repository;
-
Clone your forked repository to your laptop;
-
Commit modificatioins to your laptop repository;
-
Push modifications to your forked repository;
-
Send a pull request in your forked repository on github website;
-
Tom accept your request and merges into his repository;
-
In your laptop repository, add upstream repository as a remote source;
-
Sync with the upstream repository with
git fetch
andgit merge
;
This is a whole cycle. Repeat above steps to collaborate with Tom.
Ref:
How to update GitHub forked repository?