2012-05-17 9 views
4

Mac 이름 데이터베이스에 작업 브랜치가 있는데이 브랜치를 GitHub로 푸시하고이 작업을 시도했습니다."[email protected] : Paratron/spacebattles.git 사용"

git push -u origin database 

다음과 같은 오류 메시지가 : 실행에 의해

You can't push to git://github.com/Paratron/spacebattles.git 
Use [email protected]:Paratron/spacebattles.git 

이의 원인이 될 수 알려진 문제가 있습니까? 이 오류가 발생했을 가능성이있는 오류가 있습니까?

+0

'.git/config'의 내용을 저장소 디렉토리에 게시 할 수 있습니까? 리모컨을 잘못 구성한 것 같습니다. –

답변

9

그것을 말한다처럼 (이 읽기 전용 URL이기 때문에) 당신이 git://github.com/Paratron/spacebattles.git에 밀어 수 없습니다. 이 시도 :

만약 당신이 이런 식으로 자식을 사용하지 않은 경우
git remote set-url origin [email protected]:Paratron/spacebattles.git 
git push -u origin database 

먼저 GitHub의에서 작동하도록 설정해야합니다 또한 http://help.github.com/mac-set-up-git/

, 당신이 Paratron입니까? 그렇지 않다면 저장소를 먼저 포크 화해야합니다 (http://help.github.com/fork-a-repo/). 그런 다음 대신 사용자 이름 ([email protected]:YOUR_USERNAME/spacebattles.git)을 사용해야합니다.

2

리포지토리에 대해 설정 한 URL은 읽기 전용 URL입니다. 당신은 remote set-url를 사용하여 원격의 URL을 변경해야합니다 :

git remote set-url origin [email protected]:Paratron/spacebattles.git 
+0

그래, 괜찮아. 감사합니다. –

관련 문제