Reputation: 1764
When I try doing something like this::
git push git@github-client:antonyr/Spring-Hibernate.git
I get something as following
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
error: failed to push some refs to 'git@github-client:antonyr/Spring-Hibernate.git'
By the way I have set multiple accounts using SSH for github.com.
Please help.
Upvotes: 0
Views: 574
Reputation: 67
Use the following command before pushing to git $ git push origin master
it should work.
Upvotes: 0
Reputation: 411242
You have to specify a branch to push. To push master
:
$ git push git@github-client:antonyr/Spring-Hibernate.git master
Upvotes: 2