What is the difference between git push origin and git push origin master

The default action of git push and git push origin has changed since git version 1.7.11: Before 1.7.11, git push by default pushes all branches that also exist remotely with the same name. Since 1.7.11, git push by 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 the push.default configuration option. This configuration option has … Read more

error: src refspec master does not match any

From git branch it appears that somehow your local branch name is “origin”. You can rename the branch with -mv flag, like this: git branch -mv origin master After this git branch should show master 🙂 Just to make sure the name is indeed the only thing that went astray, you can run git log and look at the last few commits – and compare … Read more