version control - What is the difference between git push and git push origin -
i'm having trouble differentiating between 2 git statements, how 1 differ? or differ @ all?
git push git push default remote
git push origin push remote named origin
when clone repository, default remote origin , automatically default upstream. that's why may not see difference.
although, if init repo locally, origin won't automatically created, e.g.:
git init git remote add origin ssh://url/to/origin git push -u origin --all # note there other way set upstream note default remote named anything. origin convention.
Comments
Post a Comment