What is the difference between git push and git push origin
I'm having trouble differentiating between the two git statements, how exactly does one differ? Or do they differ at all?
git push will git push to the default remote
git push origin will push to the remote named origin
When you clone a repository, the default remote is origin and it is automatically as the default upstream. That's why you may not see the difference.
Although, if you init a repo locally, origin won't be automatically created, e.g.:
git init git remote add origin ssh://url/to/origin git push -u origin --all # note there is also other way to set up the upstream
Note that the default remote could be named anything. origin is only a convention.