You are mixing Git and Github...
Those above are git commands, not github.
It's like a wrench (git) and a shelf where you keep wrenches(github).
Thanks to wrench you can do some things.
Does a shelf can do the same things?
Also, you are tied to github as a only site which hosts repositories.
There is much more than that like bitbucket or gitlab
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.