How to config Git remote server on Bitbucket or Github

For your first push with git, you may get following errors when you use github or bitbucket.

$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
Everything up-to-date
asked Feb 14, 2016 by harryxiyou (5,830 points)

1 Answer

 
Best answer

Just run following command to set your remote upstream to be master branch.

git push --set-upstream origin master
answered Feb 14, 2016 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...