Overview
A local repository alone provides local history, but it does not provide remote access or a shared collaboration point.
A GitHub repository provides a remote location, but it does not replace the local Git workflow. Files still need to be changed, staged, and committed locally before those commits can be pushed.
A remote repository also does not automatically contain every local branch. A branch appears remotely only after it is pushed.