what is the difference between "git push" and "git push origin master"? -


this question has answer here:

after "git commit", have 2 options: 1. "git push", 2. "git push origin master". intent push changes in local repo github master branch. in circumstances make difference?

(also, "origin" here mean?)

git push assumes have remote repository defined branch. in case, default remote origin used.

git push origin master indicates pushing specific remote, in case, origin.

this matter if created multiple remote repositories in code base. if you're committing 1 remote repository (in case, just github repository), there isn't difference between two.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -