아래와 같은 에러가 발생할 수 있다. 맨 처음 git repository로 push할 때 발생한다. 처음 위치를 어디로 정해야 할지를 얘기해달라는 것이다. master로 넣을지..

 

$ 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
error: failed to push some refs to ‘git 주소’

 

다음과 같이 origin master 를 추가해서 push하면 된다.

 

$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 204 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: => Syncing Gitorious... [OK]
To git 주소
* [new branch]      master -> master

Posted by '김용환'
,