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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -