Antony
Antony

Reputation: 1764

Github multiple account issue

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

Answers (2)

pravsim
pravsim

Reputation: 67

Use the following command before pushing to git $ git push origin master

it should work.

Upvotes: 0

mipadi
mipadi

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

Related Questions