How to config Git remote server on Bitbucket or Github

Posted on In QA

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

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

git push --set-upstream origin master

Leave a Reply

Your email address will not be published. Required fields are marked *