Is there any difference in pushing the master branch of a local git repository to the master branch of a remote repository called origin with git push origin master
or with git push origin?
Is there any difference in pushing the master branch of a local git repository
Share
The default action of
git pushandgit push originhas changed sincegitversion1.7.11:Before
1.7.11,git pushby default pushes all branches that also exist remotely with the same name.Since
1.7.11,git pushby default pushes the current branch to a remote branch with the same name.Before and after version
1.7.11, the default behavior can be configured with thepush.defaultconfiguration option. This configuration option has been introduced ingitversion1.6.3.